hequn8128 commented on a change in pull request #11051: 
[FLINK-15961][table-planner][table-planner-blink] Introduce Python Physical 
Correlate RelNodes which are containers for Python TableFunction
URL: https://github.com/apache/flink/pull/11051#discussion_r378822971
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/utils/UserDefinedTableFunctions.scala
 ##########
 @@ -113,6 +114,25 @@ class TableFunc3(data: String, conf: Map[String, String]) 
extends TableFunction[
   }
 }
 
+class PythonTableFunction extends TableFunction[Row] with PythonFunction {
+
+  def eval(x: Int, y: Int): Unit = {
+    for (i <- 0 until y) {
+      val row = new Row(2)
+      row.setField(0, x)
+      row.setField(1, i * i)
+      collect(row)
+    }
 
 Review comment:
   How about remove these lines. The code will never be called.

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