codope commented on a change in pull request #5181:
URL: https://github.com/apache/hudi/pull/5181#discussion_r839372850



##########
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:
       `ParquetUtils().readRangeFromParquetMetadata` already returns 
`List<HoodieColumnRangeMetadata<Comparable>>` so why recreate? Can't we 
directly sort the stream on #L832 ?




-- 
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]


Reply via email to