Skip to content

Commit 49ca112

Browse files
committed
Update unit test
1 parent e887706 commit 49ca112

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ class ParquetSchemaSuite extends ParquetSchemaTest {
478478
StructType(Seq(
479479
StructField(
480480
"f1",
481-
ArrayType(IntegerType, containsNull = true),
481+
ArrayType(
482+
StructType(Seq(StructField("num", IntegerType, nullable = false))), containsNull = true),
482483
nullable = true))),
483484
"""message root {
484485
| optional group f1 (LIST) {
@@ -505,7 +506,9 @@ class ParquetSchemaSuite extends ParquetSchemaTest {
505506
testParquetToCatalyst(
506507
"Backwards-compatibility: LIST with non-nullable element type - 2",
507508
StructType(Seq(
508-
StructField("f1", ArrayType(IntegerType, containsNull = false), nullable = true))),
509+
StructField("f1",
510+
ArrayType(StructType(Seq(StructField("num", IntegerType))), containsNull = false),
511+
nullable = true))),
509512
"""message root {
510513
| optional group f1 (LIST) {
511514
| repeated group array {

0 commit comments

Comments
 (0)