KurtYoung commented on a change in pull request #10224:
[FLINK-14716][table-planner-blink] Cooperate computed column with push down
rules
URL: https://github.com/apache/flink/pull/10224#discussion_r347076314
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/rules/logical/PushProjectIntoTableSourceScanRule.scala
##########
@@ -64,7 +67,7 @@ class PushProjectIntoTableSourceScanRule extends RelOptRule(
return
}
- val relOptTable = scan.getTable.asInstanceOf[FlinkRelOptTable]
+ val relOptTable = scan.getTable.asInstanceOf[FlinkPreparingTableBase]
Review comment:
You can cast to `TableSourceTable` here and no need to do `unwrap` in the
following line, since we already checked this in `matches` method
----------------------------------------------------------------
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