Skip to content

Commit 3c580f1

Browse files
committed
Fixes test failure caused by making "mergeSchema" default to "false"
1 parent b1646aa commit 3c580f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/parquet/ParquetPartitionDiscoverySuite.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,12 @@ class ParquetPartitionDiscoverySuite extends QueryTest with ParquetTest {
447447
(1 to 10).map(i => (i, i.toString)).toDF("intField", "stringField"),
448448
makePartitionDir(base, defaultPartitionName, "pi" -> 2))
449449

450-
sqlContext.read.format("parquet").load(base.getCanonicalPath).registerTempTable("t")
450+
sqlContext
451+
.read
452+
.option("mergeSchema", "true")
453+
.format("parquet")
454+
.load(base.getCanonicalPath)
455+
.registerTempTable("t")
451456

452457
withTempTable("t") {
453458
checkAnswer(

0 commit comments

Comments
 (0)