twalthr commented on a change in pull request #8062: [FLINK-11884][table]
Implement expression resolution on top of new Expressions
URL: https://github.com/apache/flink/pull/8062#discussion_r277660222
##########
File path:
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/operations/TableOperationToRelNodeConverter.java
##########
@@ -154,6 +162,39 @@ public RelNode visitOther(TableOperation other) {
throw new TableException("Unknown table operation: " +
other);
}
+ @Override
+ public RelNode visitCalculatedTable(CalculatedTableOperation
calculatedTable) {
+ String[] fieldNames =
calculatedTable.getTableSchema().getFieldNames();
+ int[] fieldIndices = IntStream.range(0,
fieldNames.length).toArray();
+ TypeInformation<?> resultType =
calculatedTable.getResultType();
+
+ @SuppressWarnings("unchecked")
Review comment:
Add generics to CalculatedTableOperation to avoid this suppression.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services