godfreyhe commented on a change in pull request #9162: [FLINK-13321][table-planner-blink] Fix bug in Blink Planner, Join a udf with constant arguments or without argument in TableAPI query does not work now URL: https://github.com/apache/flink/pull/9162#discussion_r305179186
########## File path: flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/runtime/stream/sql/CorrelateITCase.scala ########## @@ -84,6 +84,30 @@ class CorrelateITCase extends StreamingTestBase { assertEquals(expected.sorted, sink.getAppendResults.sorted) } + @Test + def testConstantTableFunc(): Unit = { + tEnv.registerFunction("str_split", new StringSplit()) + val query = "SELECT * FROM LATERAL TABLE(str_split()) as T0(d)" + val sink = new TestingAppendSink + tEnv.sqlQuery(query).toAppendStream[Row].addSink(sink) + env.execute() + + val expected = List("a","b","c") Review comment: nit: add blank between`a,b,c` ---------------------------------------------------------------- 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