codope commented on a change in pull request #5181:
URL: https://github.com/apache/hudi/pull/5181#discussion_r839374371
##########
File path:
hudi-utilities/src/main/java/org/apache/hudi/utilities/HoodieMetadataTableValidator.java
##########
@@ -835,13 +830,11 @@ public HoodieMetadataValidationContext(
metaClient.getHadoopConf(),
new Path(new Path(metaClient.getBasePath(),
partitionPath), filename),
allColumnNameList).stream())
- .map(rangeMetadata -> HoodieColumnRangeMetadata.create(
+ .map(rangeMetadata -> HoodieColumnRangeMetadata.<Comparable>create(
Review comment:
Can we not simply do as below?
```
else {
return baseFileNameList.stream().flatMap(filename ->
new ParquetUtils().readRangeFromParquetMetadata(
metaClient.getHadoopConf(),
new Path(new Path(metaClient.getBasePath(),
partitionPath), filename),
allColumnNameList).stream())
.sorted(new HoodieColumnRangeMetadataComparator())
.collect(Collectors.toList());
}
--
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]