yihua commented on code in PR #13714:
URL: https://github.com/apache/hudi/pull/13714#discussion_r2271401811
##########
hudi-common/src/main/java/org/apache/hudi/avro/HoodieAvroReaderContext.java:
##########
@@ -136,15 +140,27 @@ public ClosableIterator<IndexedRecord>
getFileRecordIterator(
Schema requiredSchema,
HoodieStorage storage) throws IOException {
HoodieAvroFileReader reader;
+ boolean isLogFile = FSUtils.isLogFile(filePath);
+ Schema fileOutputSchema;
+ Map<String, String> renamedColumns;
+ if (isLogFile) {
+ fileOutputSchema = dataSchema;
Review Comment:
Should this use `requiredSchema` instead of `dataSchema`?
--
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]