dianfu commented on a change in pull request #10913: [FLINK-15636][python] 
Supports Python UDF in old planner under batch mode
URL: https://github.com/apache/flink/pull/10913#discussion_r369420517
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/nodes/CommonPythonCalc.scala
 ##########
 @@ -89,4 +89,18 @@ trait CommonPythonCalc {
         new PythonFunctionInfo(pythonFunction, inputs.toArray)
     }
   }
+
+  private[flink] def getPythonRexCalls(calcProgram: RexProgram): 
Array[RexCall] = {
+    calcProgram.getProjectList
+      .map(calcProgram.expandLocalRef)
+      .collect { case call: RexCall => call }
+      .toArray
+  }
+
+  private [flink] def getForwardFields(calcProgram: RexProgram): Array[Int] = {
 
 Review comment:
   getForwardFields -> getForwardedFields

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to