danny0405 commented on code in PR #19805:
URL: https://github.com/apache/hudi/pull/19805#discussion_r3921130889


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/OptionsResolver.java:
##########
@@ -262,6 +265,16 @@ public static boolean 
isGlobalRecordLevelIndex(Configuration conf) {
     return indexType == HoodieIndex.IndexType.GLOBAL_RECORD_LEVEL_INDEX;
   }
 
+  /**
+   * Returns whether the table uses partitioned record level index served by 
the local RocksDB-based
+   * partitioned index cache, i.e. {@link FlinkOptions#INDEX_RLI_BACKEND_TYPE} 
is configured as {@code rocksdb}.
+   */
+  public static boolean isTimeBoundedRLIBootstrapEnabled(Configuration conf) {
+    return isRecordLevelIndex(conf)

Review Comment:
   The condition should be `conf.get(FlinkOptions.INDEX_BOOTSTRAP_ENABLED)` 
instead of `isRecordLevelIndex(conf)`? then we can simplify the enabling 
condition in `Pipelines` ?
   



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