Skip to content

Commit

Permalink
[VL] Add flushable decimal sum test (apache#4871)
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiayi771 authored and taiyang-li committed Oct 9, 2024
1 parent 807f988 commit e7d6438
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,21 @@ class VeloxAggregateFunctionsFlushSuite extends VeloxAggregateFunctionsSuite {
}
}
}

test("flushable aggregate decimal sum") {
withSQLConf(
SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "false",
SQLConf.FILES_MAX_PARTITION_BYTES.key -> "1k") {
runQueryAndCompare("select sum(l_quantity) from lineitem") {
df =>
val executedPlan = getExecutedPlan(df)
assert(
executedPlan.exists(plan => plan.isInstanceOf[RegularHashAggregateExecTransformer]))
assert(
executedPlan.exists(plan => plan.isInstanceOf[FlushableHashAggregateExecTransformer]))
}
}
}
}

object VeloxAggregateFunctionsSuite {
Expand Down

0 comments on commit e7d6438

Please sign in to comment.