Davis-Zhang-Onehouse commented on code in PR #13647:
URL: https://github.com/apache/hudi/pull/13647#discussion_r2252032275


##########
hudi-common/src/main/java/org/apache/hudi/metadata/BaseTableMetadata.java:
##########
@@ -261,16 +251,16 @@ public Map<Pair<String, String>, 
List<HoodieMetadataColumnStats>> getColumnStats
       return Collections.emptyMap();
     }
 
-    Map<String, Pair<String, String>> columnStatKeyToFileNameMap = 
computeColStatKeyToFileName(partitionNameFileNameList, columnNames);
-    return computeFileToColumnStatsMap(columnStatKeyToFileNameMap);
+    Pair<List<ColumnStatsIndexRawKey>, Map<String, Pair<String, String>>> 
rawKeysAndMap = computeColStatRawKeys(partitionNameFileNameList, columnNames);
+    return computeFileToColumnStatsMap(rawKeysAndMap.getLeft(), 
rawKeysAndMap.getRight());
   }
 
   /**
    * Returns a list of all partitions.
    */
   protected List<String> fetchAllPartitionPaths() {
     HoodieTimer timer = HoodieTimer.start();
-    Option<HoodieRecord<HoodieMetadataPayload>> recordOpt = 
getRecordByKey(RECORDKEY_PARTITION_LIST,
+    Option<HoodieRecord<HoodieMetadataPayload>> recordOpt = 
readFilesIndexRecords(RECORDKEY_PARTITION_LIST,

Review Comment:
   done



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