hudi-agent commented on code in PR #19844:
URL: https://github.com/apache/hudi/pull/19844#discussion_r3975287095


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/utils/Pipelines.java:
##########
@@ -408,36 +408,43 @@ public static DataStream<HoodieFlinkInternalRow> 
bootstrap(
       DataStream<RowData> dataStream,
       boolean bounded,
       boolean overwrite) {
-    final boolean globalIndex = conf.get(FlinkOptions.INDEX_GLOBAL_ENABLED);
     if (overwrite || OptionsResolver.isBucketIndexType(conf)) {
+      // overwrite and bucket index do not rely on a bootstrapped key index.
       return rowDataToHoodieRecord(conf, rowType, dataStream);
     }
-    if (bounded && !globalIndex && OptionsResolver.isPartitionedTable(conf)) {
-      return boundedBootstrap(conf, rowType, dataStream);
+
+    final boolean isRLI = OptionsResolver.isGlobalRecordLevelIndex(conf) || 
OptionsResolver.isRecordLevelIndex(conf);

Review Comment:
   🤖 nit: could we spell this out as `isRecordLevelIndex`? `isRLI` reads a bit 
cryptic next to the fully-spelled `globalIndex` below.
   
   <sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag 
quality.</i></sub>



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