hehuiyuan commented on code in PR #10090:
URL: https://github.com/apache/hudi/pull/10090#discussion_r1395358414


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/utils/Pipelines.java:
##########
@@ -410,10 +410,11 @@ public static DataStream<Object> 
hoodieStreamWrite(Configuration conf, DataStrea
    * @return the compaction pipeline
    */
   public static DataStreamSink<CompactionCommitEvent> compact(Configuration 
conf, DataStream<Object> dataStream) {
-    return dataStream.transform("compact_plan_generate",
+    DataStreamSink<CompactionCommitEvent> compactionCommitEventDataStream = 
dataStream.transform("compact_plan_generate",
             TypeInformation.of(CompactionPlanEvent.class),
             new CompactionPlanOperator(conf))
         .setParallelism(1) // plan generate must be singleton
+        .setMaxParallelism(1)

Review Comment:
   The SingleOutputStreamOperator Class was returned when call  
Datastream.transform  method. 
   SingleOutputStreamOperator class  contains the setMaxParallelism method.
   
   For example :  flink 1.14
   
https://github.com/apache/flink/blob/08dbb6d5eff46e72af412643f80ac353636821de/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java#L155



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