danny0405 commented on a change in pull request #4679:
URL: https://github.com/apache/hudi/pull/4679#discussion_r793226693



##########
File path: hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableSink.java
##########
@@ -84,12 +85,20 @@ public SinkRuntimeProvider getSinkRuntimeProvider(Context 
context) {
       // default parallelism
       int parallelism = dataStream.getExecutionConfig().getParallelism();
       DataStream<Object> pipeline;
-
-      // bootstrap
-      final DataStream<HoodieRecord> hoodieRecordDataStream =
-          Pipelines.bootstrap(conf, rowType, parallelism, dataStream, 
context.isBounded(), overwrite);
-      // write pipeline
-      pipeline = Pipelines.hoodieStreamWrite(conf, parallelism, 
hoodieRecordDataStream);
+      if (OptionsResolver.isBucketIndexTable(conf)) {
+        if (!OptionsResolver.isMorTable(conf)) {
+          throw new HoodieNotSupportedException("Bucket index only support MOR 
table type.");

Review comment:
       We can move the whole `if ... else ...` code block into the ` 
Pipelines.hoodieStreamWrite` function.




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