Skip to content

Commit

Permalink
Fix nested type implicit schema evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
stream2000 committed Dec 14, 2023
1 parent 74ab128 commit e1423a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ class TestAvroSchemaResolutionSupport extends HoodieClientTestBase with ScalaAss
// NOTE: type promotion is not supported for the custom file format and the filegroup reader
// HUDI-7045 and PR#10007 in progress to fix the issue
.option(HoodieReaderConfig.FILE_GROUP_READER_ENABLED.key(), "false")
.option("spark.sql.parquet.enableNestedColumnVectorizedReader", "false")
.load(tempRecordPath)
readDf.printSchema()
readDf.show(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class Spark33LegacyHoodieParquetFileFormat(private val shouldAppendPartitionValu
val resultSchema = StructType(partitionSchema.fields ++ requiredSchema.fields)
val sqlConf = sparkSession.sessionState.conf
val enableOffHeapColumnVector = sqlConf.offHeapColumnVectorEnabled
val enableVectorizedReader: Boolean = supportBatch(sparkSession, resultSchema)
val enableVectorizedReader: Boolean =
ParquetUtils.isBatchReadSupportedForSchema(sqlConf, resultSchema)
val enableRecordFilter: Boolean = sqlConf.parquetRecordFilterEnabled
val timestampConversion: Boolean = sqlConf.isParquetINT96TimestampConversion
val capacity = sqlConf.parquetVectorizedReaderBatchSize
Expand Down

0 comments on commit e1423a8

Please sign in to comment.