From 5834910319b70edfe1dc689645f2a0641d3dbd7f Mon Sep 17 00:00:00 2001 From: Chang Chen Date: Mon, 17 Jun 2024 13:31:23 +0800 Subject: [PATCH] fix warning --- .../spark/sql/sources/GlutenInsertSuite.scala | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/sources/GlutenInsertSuite.scala b/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/sources/GlutenInsertSuite.scala index 468226deed331..084c2faa8c5c2 100644 --- a/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/sources/GlutenInsertSuite.scala +++ b/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/sources/GlutenInsertSuite.scala @@ -407,7 +407,7 @@ class GlutenInsertSuite withTable("t") { sql(s"create table t(i boolean) using ${config.dataSource}") if (config.useDataFrames) { - Seq((false)).toDF.write.insertInto("t") + Seq(false).toDF.write.insertInto("t") } else { sql("insert into t select false") } @@ -422,12 +422,12 @@ class GlutenInsertSuite val incompatibleDefault = "Failed to execute ALTER TABLE ADD COLUMNS command because the destination " + "table column `s` has a DEFAULT value" - Seq(Config("parquet"), Config("parquet", true)).foreach { + Seq(Config("parquet"), Config("parquet", useDataFrames = true)).foreach { config => withTable("t") { sql(s"create table t(i boolean) using ${config.dataSource}") if (config.useDataFrames) { - Seq((false)).toDF.write.insertInto("t") + Seq(false).toDF.write.insertInto("t") } else { sql("insert into t select false") } @@ -454,7 +454,7 @@ class GlutenInsertSuite withTable("t") { sql(s"create table t(i boolean) using ${config.dataSource}") if (config.useDataFrames) { - Seq((false)).toDF.write.insertInto("t") + Seq(false).toDF.write.insertInto("t") } else { sql("insert into t select false") } @@ -471,12 +471,12 @@ class GlutenInsertSuite val incompatibleDefault = "Failed to execute ALTER TABLE ADD COLUMNS command because the destination " + "table column `s` has a DEFAULT value" - Seq(Config("parquet"), Config("parquet", true)).foreach { + Seq(Config("parquet"), Config("parquet", useDataFrames = true)).foreach { config => withTable("t") { sql(s"create table t(i boolean) using ${config.dataSource}") if (config.useDataFrames) { - Seq((false)).toDF.write.insertInto("t") + Seq(false).toDF.write.insertInto("t") } else { sql("insert into t select false") } @@ -503,7 +503,7 @@ class GlutenInsertSuite withTable("t") { sql(s"create table t(i boolean) using ${config.dataSource}") if (config.useDataFrames) { - Seq((false)).toDF.write.insertInto("t") + Seq(false).toDF.write.insertInto("t") } else { sql("insert into t select false") } @@ -568,12 +568,12 @@ class GlutenInsertSuite val incompatibleDefault = "Failed to execute ALTER TABLE ADD COLUMNS command because the destination " + "table column `s` has a DEFAULT value" - Seq(Config("parquet"), Config("parquet", true)).foreach { + Seq(Config("parquet"), Config("parquet", useDataFrames = true)).foreach { config => withTable("t") { sql(s"create table t(i boolean) using ${config.dataSource}") if (config.useDataFrames) { - Seq((false)).toDF.write.insertInto("t") + Seq(false).toDF.write.insertInto("t") } else { sql("insert into t select false") }