codope commented on a change in pull request #4848:
URL: https://github.com/apache/hudi/pull/4848#discussion_r815607975
##########
File path:
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java
##########
@@ -339,6 +385,13 @@ private void processAppendResult(AppendResult result) {
updateWriteStatus(stat, result);
}
+ if (config.isMetadataIndexColumnStatsForAllColumnsEnabled()) {
+ Map<String, HoodieColumnRangeMetadata<Comparable>> columnRangeMap =
stat.getRecordsStats().isPresent()
Review comment:
We actually need `getRecordStats().get().getStats()`, hence the
`isPresent` check. `getRecordStats().getOrElse(() -> new HashMap())` will only
return the `RecordStats` from which we will have to call `getStats()`.
--
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]