manojpec commented on a change in pull request #3968:
URL: https://github.com/apache/hudi/pull/3968#discussion_r749904247
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieLogFormatReader.java
##########
@@ -39,6 +39,8 @@
private final List<HoodieLogFile> logFiles;
// Readers for previously scanned log-files that are still open
private final List<HoodieLogFileReader> prevReadersInOpenState;
+ // Key field to read get the key from record
+ private final String keyField;
Review comment:
fixed.
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieLogFileReader.java
##########
@@ -251,11 +256,12 @@ private HoodieLogBlock readBlock() throws IOException {
return HoodieAvroDataBlock.getBlock(content, readerSchema);
} else {
return new HoodieAvroDataBlock(logFile, inputStream,
Option.ofNullable(content), readBlockLazily,
- contentPosition, contentLength, blockEndPos, readerSchema,
header, footer);
+ contentPosition, contentLength, blockEndPos, readerSchema,
header, footer, this.keyField);
}
case HFILE_DATA_BLOCK:
return new HoodieHFileDataBlock(logFile, inputStream,
Option.ofNullable(content), readBlockLazily,
- contentPosition, contentLength, blockEndPos, readerSchema,
header, footer, enableInlineReading);
+ contentPosition, contentLength, blockEndPos, readerSchema,
+ header, footer, enableInlineReading, this.keyField);
Review comment:
fixed.
--
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]