nsivabalan commented on code in PR #10251:
URL: https://github.com/apache/hudi/pull/10251#discussion_r1417921574


##########
hudi-common/src/main/java/org/apache/hudi/metadata/BaseTableMetadata.java:
##########
@@ -244,8 +245,9 @@ public Map<Pair<String, String>, HoodieMetadataColumnStats> 
getColumnStats(final
     Set<String> columnStatKeyset = new HashSet<>();
     final ColumnIndexID columnIndexID = new ColumnIndexID(columnName);
     for (Pair<String, String> partitionNameFileNamePair : 
partitionNameFileNameList) {
+      String partitionIdentifier = 
HoodieTableMetadataUtil.getPartitionIdentifier(partitionNameFileNamePair.getLeft());
       final String columnStatsIndexKey = 
HoodieMetadataPayload.getColumnStatsIndexKey(
-          new PartitionIndexID(partitionNameFileNamePair.getLeft()),
+          new PartitionIndexID(partitionIdentifier),

Review Comment:
   yeah. I also gave a thought about it. Only thing I could come up is adding a 
PartitionMapper as an argument to these methods getColumnStats, getBloomFilter 
and the implementation need to call for partition name mapping. But even then 
the implementer may miss to call the PartitionMapper. and I chucked the idea. 
   
   but if you guys have any other better idea, lmk. 



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