Skip to content

Commit 3c5073a

Browse files
committed
Fixes SaveModes used in test cases
1 parent fb5a607 commit 3c5073a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/core/src/test/scala/org/apache/spark/sql/sources/FSBasedRelationSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class FSBasedRelationSuite extends DataSourceTest {
262262
intercept[IOException] {
263263
testDF.save(
264264
source = classOf[SimpleFSBasedSource].getCanonicalName,
265-
mode = SaveMode.Overwrite,
265+
mode = SaveMode.ErrorIfExists,
266266
options = Map(
267267
"path" -> basePath.toString,
268268
"schema" -> dataSchema.json),
@@ -273,7 +273,7 @@ class FSBasedRelationSuite extends DataSourceTest {
273273
ignore("save() - partitioned table - Ignore") {
274274
testDF.save(
275275
source = classOf[SimpleFSBasedSource].getCanonicalName,
276-
mode = SaveMode.Overwrite,
276+
mode = SaveMode.Ignore,
277277
options = Map(
278278
"path" -> basePath.toString,
279279
"schema" -> dataSchema.json),
@@ -374,7 +374,7 @@ class FSBasedRelationSuite extends DataSourceTest {
374374
testDF.saveAsTable(
375375
tableName = "t",
376376
source = classOf[SimpleFSBasedSource].getCanonicalName,
377-
mode = SaveMode.Overwrite,
377+
mode = SaveMode.ErrorIfExists,
378378
options = Map(
379379
"path" -> basePath.toString,
380380
"schema" -> dataSchema.json),
@@ -406,7 +406,7 @@ class FSBasedRelationSuite extends DataSourceTest {
406406
testDF.saveAsTable(
407407
tableName = "t",
408408
source = classOf[SimpleFSBasedSource].getCanonicalName,
409-
mode = SaveMode.Overwrite,
409+
mode = SaveMode.Ignore,
410410
options = Map(
411411
"path" -> basePath.toString,
412412
"schema" -> dataSchema.json),

0 commit comments

Comments
 (0)