slinkydeveloper commented on a change in pull request #18621:
URL: https://github.com/apache/flink/pull/18621#discussion_r800618416



##########
File path: 
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java
##########
@@ -433,20 +445,26 @@ private int deriveSinkParallelism(
             int rowtimeFieldIndex,
             int sinkParallelism,
             Configuration config) {
-        String sinkName = getOperatorName(config);
+        TransformationMetadata sinkMeta = getOperatorMeta(SINK_OPERATOR, 
config);
         String sinkDescription = getOperatorDescription(config);
         if (runtimeProvider instanceof DataStreamSinkProvider) {
             Transformation<RowData> sinkTransformation =
                     applyRowtimeTransformation(
                             inputTransform, rowtimeFieldIndex, 
sinkParallelism, config);
             final DataStream<RowData> dataStream = new DataStream<>(env, 
sinkTransformation);
             final DataStreamSinkProvider provider = (DataStreamSinkProvider) 
runtimeProvider;
-            return provider.consumeDataStream(dataStream).getTransformation();
+            return provider.consumeDataStream(dataStream)
+                    .uid(sinkMeta.getUid())

Review comment:
       Should I remove the same changes i did for source as well?




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