Re: [External] Re: Exception when running Java UDF with Blink table planner

2022-06-01 Thread Tom Thornton
Hi Shengkai, In order to reproduce the issue, the input argument type must be `Object[]`. Also DPScalarFunction is a typo and should be ScalarFunction. Are you able to observe the error if you try with the changed input type: public static class ListToString extends ScalarFunction { public St

Re: [External] Re: Exception when running Java UDF with Blink table planner

2022-05-31 Thread Shengkai Fang
Hi, Tom. I don't reproduce the exception in the master. I am not sure whether the problem is fixed or I missing something. The only difference is my test udf extends ScalarFunction rather than DPScalarFunction and I use String[] as the input type. ``` public static class ListToString extends Sc

Re: [External] Re: Exception when running Java UDF with Blink table planner

2022-05-31 Thread Tom Thornton
Hi all, Thank you for the help. It seems an exception thrown when Flink try to deserialize the object > outputed by your udf. So is the obejct produced by your udf serializable? > Does it contain any lambda function in the object/class? The output object of the UDF is the string "foo" which sho

Re: [External] Re: Exception when running Java UDF with Blink table planner

2022-05-31 Thread Tom Thornton
Hi, Thank you for your help. Here's the requested info: Could you also tell us which Flink version you are using, the schema of the > source table and some test data? With these info, we can debug in our local > environment. > Flink version: 1.11.6. Schema of the source table: name | type | null