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_r378823281
########## File path: flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/utils/UserDefinedTableFunctions.scala ########## @@ -172,6 +173,25 @@ class PojoUser() { } } +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? ---------------------------------------------------------------- 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