cshuo commented on code in PR #18894:
URL: https://github.com/apache/hudi/pull/18894#discussion_r3354071722
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/OptionsResolver.java:
##########
@@ -232,6 +236,30 @@ public static boolean
isGlobalRecordLevelIndex(Configuration conf) {
return indexType == HoodieIndex.IndexType.GLOBAL_RECORD_LEVEL_INDEX;
}
+ /**
+ * Estimates the file group count to use for RLI partition of a new table.
+ */
+ public static int estimateFileGroupCountForRLI(Configuration conf) {
+ HoodieWriteConfig writeConfig =
FlinkWriteClients.getHoodieClientConfig(conf);
+ int minFileGroupCount;
+ int maxFileGroupCount;
+ if (writeConfig.isRecordLevelIndexEnabled()) {
Review Comment:
`writeConfig` is removed, and using `isRecordLevelIndex(conf)` instead.
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/OptionsResolver.java:
##########
@@ -232,6 +236,30 @@ public static boolean
isGlobalRecordLevelIndex(Configuration conf) {
return indexType == HoodieIndex.IndexType.GLOBAL_RECORD_LEVEL_INDEX;
}
+ /**
+ * Estimates the file group count to use for RLI partition of a new table.
+ */
+ public static int estimateFileGroupCountForRLI(Configuration conf) {
+ HoodieWriteConfig writeConfig =
FlinkWriteClients.getHoodieClientConfig(conf);
Review Comment:
updated.
--
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]