Skip to content

Commit

Permalink
add more ut
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGuangxin committed Jun 5, 2024
1 parent 87a4692 commit ed6b171
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ class TestOperator extends VeloxWholeStageTransformerSuite {
Seq("sort", "streaming").foreach {
windowType =>
withSQLConf("spark.gluten.sql.columnar.backend.velox.window.type" -> windowType) {
runQueryAndCompare(
"select max(l_partkey) over" +
" (partition by l_suppkey order by l_orderkey" +
" RANGE BETWEEN 1 PRECEDING AND CURRENT ROW), " +
"min(l_comment) over" +
" (partition by l_suppkey order by l_discount" +
" RANGE BETWEEN 1 PRECEDING AND CURRENT ROW) from lineitem ") {
checkSparkOperatorMatch[WindowExecTransformer]
}

runQueryAndCompare(
"select max(l_partkey) over" +
" (partition by l_suppkey order by l_orderkey" +
Expand Down

0 comments on commit ed6b171

Please sign in to comment.