You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/03/09 06:47:38 UTC
[GitHub] [flink] wuchong commented on a change in pull request #15120: [FLINK-21679][table] Set output type for transformations from SourceProvider and DataStreamScanProvider in CommonExecTableSourceScan
wuchong commented on a change in pull request #15120:
URL: https://github.com/apache/flink/pull/15120#discussion_r589983139
##########
File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecTableSourceScan.java
##########
@@ -85,10 +85,16 @@ public DynamicTableSourceSpec getTableSourceSpec() {
} else if (provider instanceof SourceProvider) {
Source<RowData, ?, ?> source = ((SourceProvider) provider).createSource();
// TODO: Push down watermark strategy to source scan
- return env.fromSource(source, WatermarkStrategy.noWatermarks(), operatorName)
- .getTransformation();
+ Transformation<RowData> transformation =
+ env.fromSource(source, WatermarkStrategy.noWatermarks(), operatorName)
+ .getTransformation();
+ transformation.setOutputType(outputTypeInfo);
+ return transformation;
Review comment:
We can use `env.fromSource(source, WatermarkStrategy.noWatermarks(), operatorName, outputTypeInfo)` for this.
----------------------------------------------------------------
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:
users@infra.apache.org