Github user xccui commented on a diff in the pull request: https://github.com/apache/flink/pull/5025#discussion_r151637017 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/StreamTableEnvironment.scala --- @@ -234,11 +234,12 @@ abstract class StreamTableEnvironment( "UpsertStreamTableSink requires that Table has a full primary keys if it is updated.") } val outputType = sink.getOutputType + val resultType = getResultType(table.getRelNode, optimizedPlan) --- End diff -- Yes, you are right. Thanks for the explanation @dianfu.
---