voonhous commented on code in PR #14340:
URL: https://github.com/apache/hudi/pull/14340#discussion_r2591621242
##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/SparkFileFormatInternalRowReaderContext.scala:
##########
@@ -75,19 +73,19 @@ class
SparkFileFormatInternalRowReaderContext(baseFileReader: SparkColumnarFileR
override def getFileRecordIterator(filePath: StoragePath,
start: Long,
length: Long,
- dataSchema: Schema, // dataSchema refers
to table schema in most cases(non log file reads).
- requiredSchema: Schema,
+ dataSchema: HoodieSchema, // dataSchema
refers to table schema in most cases(non log file reads).
+ requiredSchema: HoodieSchema,
storage: HoodieStorage):
ClosableIterator[InternalRow] = {
- val hasRowIndexField =
AvroSchemaUtils.containsFieldInSchema(requiredSchema,
ROW_INDEX_TEMPORARY_COLUMN_NAME)
+ val hasRowIndexField =
AvroSchemaUtils.containsFieldInSchema(requiredSchema.toAvroSchema,
ROW_INDEX_TEMPORARY_COLUMN_NAME)
Review Comment:
Done!
--
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]