ashokraminedi commented on code in PR #20042:
URL: https://github.com/apache/hudi/pull/20042#discussion_r4090116782
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java:
##########
@@ -816,7 +815,7 @@ public HoodieTableFileSystemView
getMetadataFileSystemView() {
public Map<String, String> stats() {
MetadataPartitionType[] metadataPartitionTypes =
MetadataPartitionType.getValidValues(metadataMetaClient.getTableConfig().getTableVersion());
Set<String> allMetadataPartitionPaths =
Arrays.stream(metadataPartitionTypes).map(MetadataPartitionType::getPartitionPath).collect(Collectors.toSet());
- return metrics.map(m -> m.getStats(true, metadataMetaClient, this,
allMetadataPartitionPaths)).orElseGet(HashMap::new);
+ return HoodieMetadataMetrics.computeStats(true, metadataMetaClient, this,
allMetadataPartitionPaths);
Review Comment:
Thanks for pointing this out. I updated the procedure test in 872edc4 to
check for a positive partitionCount. The suite passes locally on Spark 3.5
(9/9); the new CI run will verify Spark 4.2.
--
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]