Skip to content

Commit 2efb84c

Browse files
committed
Remove unnecessary configuration from updated test.
1 parent afef6ce commit 2efb84c

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

sql/core/src/test/scala/org/apache/spark/sql/connector/InsertIntoTests.scala

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -447,19 +447,17 @@ trait InsertIntoSQLOnlyTests
447447
}
448448

449449
dynamicOverwriteTest("InsertInto: overwrite - multiple static partitions - dynamic mode") {
450-
withSQLConf(PARTITION_OVERWRITE_MODE.key -> PartitionOverwriteMode.DYNAMIC.toString) {
451-
val t1 = s"${catalogAndNamespace}tbl"
452-
withTableAndData(t1) { view =>
453-
sql(s"CREATE TABLE $t1 (id bigint, data string, p int) " +
454-
s"USING $v2Format PARTITIONED BY (id, p)")
455-
sql(s"INSERT INTO $t1 VALUES (2L, 'dummy', 2), (4L, 'keep', 2)")
456-
sql(s"INSERT OVERWRITE TABLE $t1 PARTITION (id = 2, p = 2) SELECT data FROM $view")
457-
verifyTable(t1, Seq(
458-
(2, "a", 2),
459-
(2, "b", 2),
460-
(2, "c", 2),
461-
(4, "keep", 2)).toDF("id", "data", "p"))
462-
}
450+
val t1 = s"${catalogAndNamespace}tbl"
451+
withTableAndData(t1) { view =>
452+
sql(s"CREATE TABLE $t1 (id bigint, data string, p int) " +
453+
s"USING $v2Format PARTITIONED BY (id, p)")
454+
sql(s"INSERT INTO $t1 VALUES (2L, 'dummy', 2), (4L, 'keep', 2)")
455+
sql(s"INSERT OVERWRITE TABLE $t1 PARTITION (id = 2, p = 2) SELECT data FROM $view")
456+
verifyTable(t1, Seq(
457+
(2, "a", 2),
458+
(2, "b", 2),
459+
(2, "c", 2),
460+
(4, "keep", 2)).toDF("id", "data", "p"))
463461
}
464462
}
465463

0 commit comments

Comments
 (0)