Skip to content

Commit

Permalink
more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
loudongfeng committed Aug 8, 2024
1 parent c90c169 commit 2c5cad9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,16 @@ class GlutenClickhouseFunctionSuite extends GlutenClickHouseTPCHAbstractSuite {
sql("""
|insert into test_array_decimal
|values array(1.0, 2.0), array(3.0, 4.0),
|array(5.0, 6.0), array(7.0, 8.0)
|array(5.0, 6.0), array(7.0, 8.0), array(7.0, 7.0)
|""".stripMargin)
// disable native scan so will get a spark row to CH column
withSQLConf(GlutenConfig.COLUMNAR_FILESCAN_ENABLED.key -> "false") {
val q = "SELECT max(val) from test_array_decimal"
compareResultsAgainstVanillaSpark(q, true, { _ => }, false)
val q2 = "SELECT max(val[0]) from test_array_decimal"
compareResultsAgainstVanillaSpark(q2, true, { _ => }, false)
val q3 = "SELECT max(val[1]) from test_array_decimal"
compareResultsAgainstVanillaSpark(q3, true, { _ => }, false)
}
}
}
Expand Down

0 comments on commit 2c5cad9

Please sign in to comment.