Skip to content

Commit

Permalink
fix 2.11 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pengyu-hou committed Oct 3, 2023
1 parent 3c7fd33 commit 86ae731
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ class DerivationTest {
val namespace = "test_derivations"
spark.sql(s"CREATE DATABASE IF NOT EXISTS $namespace")
val groupBy = BootstrapUtils.buildGroupBy(namespace, spark)
val groupByWithDerivation = groupBy.setDerivations(Seq(
Builders.Derivation(name = "user_amount_30d_avg",
expression = "amount_dollars_sum_30d / 30"),
Builders.Derivation(
name = "*"
),
).toJava)

val derivation1 = Builders.Derivation(name = "user_amount_30d_avg",
expression = "amount_dollars_sum_30d / 30")
val derivation2 = Builders.Derivation(
name = "*"
)

val groupByWithDerivation = groupBy
.setDerivations(
Seq(
derivation1,
derivation2
).toJava
)
val queryTable = BootstrapUtils.buildQuery(namespace, spark)
val baseJoin = Builders.Join(
left = Builders.Source.events(
Expand Down

0 comments on commit 86ae731

Please sign in to comment.