Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
loudongfeng committed Aug 8, 2024
1 parent b8a09f0 commit c90c169
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,15 @@ class GlutenClickhouseFunctionSuite extends GlutenClickHouseTPCHAbstractSuite {

test("array decimal32 spark row to CH column") {
withTable("test_array_decimal") {
sql(
"""
|create table test_array_decimal(val array<decimal(5,1)>)
|using parquet
|""".stripMargin)
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)
|""".stripMargin)
sql("""
|create table test_array_decimal(val array<decimal(5,1)>)
|using parquet
|""".stripMargin)
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)
|""".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"
Expand Down

0 comments on commit c90c169

Please sign in to comment.