sunjincheng121 commented on a change in pull request #7152: [FLINK-10958]
[table] Add overload support for user defined function
URL: https://github.com/apache/flink/pull/7152#discussion_r235624956
##########
File path:
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/runtime/stream/table/CalcITCase.scala
##########
@@ -350,4 +350,33 @@ class CalcITCase extends AbstractTestBase {
"{9=Comment#3}")
assertEquals(expected.sorted, StreamITCase.testResults.sorted)
}
+
+ @Test
+ def testOverload(): Unit = {
+ val env = StreamExecutionEnvironment.getExecutionEnvironment
+ val tEnv = TableEnvironment.getTableEnvironment(env)
+
+ StreamITCase.testResults = mutable.MutableList()
+
+ val testData = new mutable.MutableList[Student]
Review comment:
I UDF defined `eval(p: Student)` you should change
`mutable.MutableList[Student]` to `mutable.MutableList[GraduatedStudent]`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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