wuchong commented on a change in pull request #14822: URL: https://github.com/apache/flink/pull/14822#discussion_r567614908
########## File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java ########## @@ -123,6 +126,10 @@ public CommonExecSink( final DataStreamSinkProvider provider = (DataStreamSinkProvider) runtimeProvider; return provider.consumeDataStream(dataStream).getTransformation(); } + } else if (runtimeProvider instanceof SinkProvider) { + final Sink<RowData, ?, ?, ?> sink = ((SinkProvider) runtimeProvider).createSink(); + return new SinkTransformation<>( Review comment: We should also add enfore logic `SinkNotNullEnforcer`. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org