Airblader commented on a change in pull request #17384:
URL: https://github.com/apache/flink/pull/17384#discussion_r719261473



##########
File path: 
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java
##########
@@ -220,12 +224,14 @@ private int deriveSinkParallelism(
      * messages.
      */
     private Transformation<RowData> applyKeyBy(
+            PlannerBase planner,
             Transformation<RowData> inputTransform,
             int[] primaryKeys,
             int sinkParallelism,
             boolean upsertMaterialize) {
         final int inputParallelism = inputTransform.getParallelism();
-        if ((inputParallelism == sinkParallelism || 
changelogMode.containsOnly(RowKind.INSERT))
+        if ((inputParallelism == sinkParallelism
+                        || 
getOutputChangelogMode(planner).containsOnly(RowKind.INSERT))

Review comment:
       Yes, good catch.




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