Skip to content

Commit 720c975

Browse files
committed
fix: support read struct with different schema
1 parent 616b2f7 commit 720c975

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
27332733
withSQLConf(
27342734
SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
27352735
CometConf.COMET_EXEC_ENABLED.key -> "true",
2736-
CometConf.COMET_ENABLED.key -> "false",
2736+
CometConf.COMET_ENABLED.key -> "true",
27372737
CometConf.COMET_EXPLAIN_FALLBACK_ENABLED.key -> "false",
27382738
CometConf.COMET_NATIVE_SCAN_IMPL.key -> "native_datafusion",
27392739
SQLConf.PARQUET_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true",
@@ -2748,9 +2748,6 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
27482748
nullable = false)
27492749

27502750
withParquetFile(data) { file =>
2751-
spark.read.parquet(file).show(false)
2752-
spark.read.parquet(file).printSchema()
2753-
spark.read.schema(readSchema).parquet(file).show(false)
27542751
checkAnswer(
27552752
spark.read.schema(readSchema).parquet(file),
27562753
Row(null) :: Row(null) :: Row(null) :: Nil)

0 commit comments

Comments
 (0)