danny0405 commented on code in PR #13572:
URL: https://github.com/apache/hudi/pull/13572#discussion_r2217096901
##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/SparkFileFormatInternalRowReaderContext.scala:
##########
@@ -266,6 +271,24 @@ class
SparkFileFormatInternalRowReaderContext(parquetFileReader: SparkParquetRea
}.asInstanceOf[ClosableIterator[InternalRow]]
}
}
+
+ override def getDataFileSchema(filePath: StoragePath, storage:
HoodieStorage): Schema = {
+ val configuration =
storageConfiguration.asInstanceOf[StorageConfiguration[Configuration]].unwrap()
+ if (configuration.get(AvroSchemaConverter.ADD_LIST_ELEMENT_RECORDS) ==
null) {
+ configuration.set(AvroSchemaConverter.ADD_LIST_ELEMENT_RECORDS, "false")
Review Comment:
Usually the configuration should be immutable once it is generated, is it
possible we set up this flag when it is instantiated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]