stream2000 commented on code in PR #9199:
URL: https://github.com/apache/hudi/pull/9199#discussion_r1283179330
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIndexUtils.java:
##########
@@ -270,4 +273,24 @@ private static boolean recommitMetadataFile(HoodieTable
table, FileStatus metaFi
}
return false;
}
+
+ /**
+ * Initialize fileIdPfx for each data partition. Specifically, the following
fields is constructed:
+ * - fileIdPfxList: the Nth element corresponds to the Nth data partition,
indicating its fileIdPfx
+ * - partitionToFileIdPfxIdxMap (return value): (table partition) ->
(fileIdPfx -> idx) mapping
+ *
+ * @param partitionToIdentifier Mapping from table partition to bucket
identifier
+ */
+ public static Map<String, Map<String, Integer>>
generatePartitionToFileIdPfxIdxMap(Map<String, ConsistentBucketIdentifier>
partitionToIdentifier) {
Review Comment:
Added test in `TestConsistentBucketIdIdentifier.java`
--
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]