fsk119 commented on code in PR #27106:
URL: https://github.com/apache/flink/pull/27106#discussion_r2427695849
##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/StreamPhysicalConstantTableFunctionScanRule.java:
##########
@@ -83,7 +84,8 @@ protected StreamPhysicalConstantTableFunctionScanRule(
public boolean matches(RelOptRuleCall call) {
final FlinkLogicalTableFunctionScan scan = call.rel(0);
- return !RexUtil.containsInputRef(scan.getCall());
+ return !RexUtil.containsInputRef(scan.getCall())
+ && PythonUtil.isNonPythonCall(scan.getCall());
Review Comment:
Currently Flink supports the following sql because of the
StreamPhysicalConstantTableFunctionRule.
```
SELECT * FROM LATERAL TABLE(func(1))
```
If we don't modify this, flink uses the java operator to run the python
function. It causes misleading exception here.
I think it's better we use another pr to fix this problem.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]