danny0405 commented on code in PR #19805:
URL: https://github.com/apache/hudi/pull/19805#discussion_r3920244489
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/utils/Pipelines.java:
##########
@@ -426,12 +428,21 @@ private static DataStream<HoodieFlinkInternalRow>
streamBootstrap(
DataStream<HoodieFlinkInternalRow> dataStream1 =
rowDataToHoodieRecord(conf, rowType, dataStream);
boolean isGlobalRLI = OptionsResolver.isGlobalRecordLevelIndex(conf);
- if (conf.get(FlinkOptions.INDEX_BOOTSTRAP_ENABLED) || (bounded &&
!isGlobalRLI)) {
+ boolean isTimeBoundedRLIBootstrap =
OptionsResolver.isTimeBoundedRLIBootstrapEnabled(conf);
Review Comment:
can we add a factory class for RLI bootstrap operators and make the new
bootstrap agnostic to this pipeline construction:
```java
isGlobalRLI ? new RLIBootstrapOperator(conf) : new BootstrapOperator(conf))
= > BootstrapOperatorFactory.createInstance(conf)
```
BTW, the new bootstrap operator should work under the gurad
`FlinkOptions.INDEX_BOOTSTRAP_ENABLED` as true right?
--
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]