Skip to content

Commit 5834910

Browse files
committed
fix warning
1 parent 1dd4ea9 commit 5834910

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

gluten-ut/spark35/src/test/scala/org/apache/spark/sql/sources/GlutenInsertSuite.scala

+9-9
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class GlutenInsertSuite
407407
withTable("t") {
408408
sql(s"create table t(i boolean) using ${config.dataSource}")
409409
if (config.useDataFrames) {
410-
Seq((false)).toDF.write.insertInto("t")
410+
Seq(false).toDF.write.insertInto("t")
411411
} else {
412412
sql("insert into t select false")
413413
}
@@ -422,12 +422,12 @@ class GlutenInsertSuite
422422
val incompatibleDefault =
423423
"Failed to execute ALTER TABLE ADD COLUMNS command because the destination " +
424424
"table column `s` has a DEFAULT value"
425-
Seq(Config("parquet"), Config("parquet", true)).foreach {
425+
Seq(Config("parquet"), Config("parquet", useDataFrames = true)).foreach {
426426
config =>
427427
withTable("t") {
428428
sql(s"create table t(i boolean) using ${config.dataSource}")
429429
if (config.useDataFrames) {
430-
Seq((false)).toDF.write.insertInto("t")
430+
Seq(false).toDF.write.insertInto("t")
431431
} else {
432432
sql("insert into t select false")
433433
}
@@ -454,7 +454,7 @@ class GlutenInsertSuite
454454
withTable("t") {
455455
sql(s"create table t(i boolean) using ${config.dataSource}")
456456
if (config.useDataFrames) {
457-
Seq((false)).toDF.write.insertInto("t")
457+
Seq(false).toDF.write.insertInto("t")
458458
} else {
459459
sql("insert into t select false")
460460
}
@@ -471,12 +471,12 @@ class GlutenInsertSuite
471471
val incompatibleDefault =
472472
"Failed to execute ALTER TABLE ADD COLUMNS command because the destination " +
473473
"table column `s` has a DEFAULT value"
474-
Seq(Config("parquet"), Config("parquet", true)).foreach {
474+
Seq(Config("parquet"), Config("parquet", useDataFrames = true)).foreach {
475475
config =>
476476
withTable("t") {
477477
sql(s"create table t(i boolean) using ${config.dataSource}")
478478
if (config.useDataFrames) {
479-
Seq((false)).toDF.write.insertInto("t")
479+
Seq(false).toDF.write.insertInto("t")
480480
} else {
481481
sql("insert into t select false")
482482
}
@@ -503,7 +503,7 @@ class GlutenInsertSuite
503503
withTable("t") {
504504
sql(s"create table t(i boolean) using ${config.dataSource}")
505505
if (config.useDataFrames) {
506-
Seq((false)).toDF.write.insertInto("t")
506+
Seq(false).toDF.write.insertInto("t")
507507
} else {
508508
sql("insert into t select false")
509509
}
@@ -568,12 +568,12 @@ class GlutenInsertSuite
568568
val incompatibleDefault =
569569
"Failed to execute ALTER TABLE ADD COLUMNS command because the destination " +
570570
"table column `s` has a DEFAULT value"
571-
Seq(Config("parquet"), Config("parquet", true)).foreach {
571+
Seq(Config("parquet"), Config("parquet", useDataFrames = true)).foreach {
572572
config =>
573573
withTable("t") {
574574
sql(s"create table t(i boolean) using ${config.dataSource}")
575575
if (config.useDataFrames) {
576-
Seq((false)).toDF.write.insertInto("t")
576+
Seq(false).toDF.write.insertInto("t")
577577
} else {
578578
sql("insert into t select false")
579579
}

0 commit comments

Comments
 (0)