Description
Three test cases in DataStreamUserDefinedFunctionITCase forgot to call the StreamITCase.clear method. This will cause it occasionally fails. Because the result of one case may affect another sometimes.
java.lang.AssertionError: Expected :MutableList(Anna#44,1, Anna#44,2, Anna#44,Anna#44, Jack#22,1, Jack#22,2, Jack#22,Jack#22, John#19,1, John#19,2, John#19,John#19, nosharp,1, nosharp,2, nosharp,nosharp) Actual :MutableList(Anna#44,1, Anna#44,2, Anna#44,Anna#44, Jack#22,1, Jack#22,2, Jack#22,Jack#22, John#19,1, John#19,2, John#19,John#19, Miller,13.56, Smith,180.2, Williams,4.68, Williams,69.0, nosharp,1, nosharp,2, nosharp,nosharp) at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:144) at org.apache.flink.table.runtime.datastream.DataStreamUserDefinedFunctionITCase.testTableFunctionWithVariableArguments(DataStreamUserDefinedFunctionITCase.scala:226) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
Attachments
Issue Links
- relates to
-
FLINK-5882 TableFunction (UDTF) should support variable types and variable arguments
- Resolved
-
FLINK-5795 Improve UDF&UDTF to support constructor with parameter
- Closed
-
FLINK-5571 add open and close methods for UserDefinedFunction in TableAPI & SQL
- Resolved
- links to