xushiyan commented on code in PR #10251:
URL: https://github.com/apache/hudi/pull/10251#discussion_r1417905201
##########
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:
agree. it may seem extra work right now but it could save more effort in
future. The modeling layer of MDT need to have some sanitization logic: all the
callers who uses this partition id should validate the value.
--
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]