hequn8128 commented on a change in pull request #9894: 
[FLINK-14342][table][python] Remove method FunctionDefinition#getLanguage.
URL: https://github.com/apache/flink/pull/9894#discussion_r338862892
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/nodes/common/CommonPythonCalc.scala
 ##########
 @@ -57,11 +56,10 @@ trait CommonPythonCalc {
   private def createPythonScalarFunctionInfo(
       rexCall: RexCall,
       inputNodes: mutable.Map[RexNode, Integer]): PythonFunctionInfo = 
rexCall.getOperator match {
-    case sfc: ScalarSqlFunction if sfc.scalarFunction.getLanguage == 
FunctionLanguage.PYTHON =>
+    case sfc: ScalarSqlFunction =>
 
 Review comment:
   Rename these rexCall to pythonRexCall? same as `CommonPythonCalc` in flink 
planner.

----------------------------------------------------------------
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

Reply via email to