Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaichen committed Jun 17, 2024
1 parent 1dd4ea9 commit 5834910
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 5834910

Please sign in to comment.