Hi Polarisary,
The fields of your `UserTableFunction` maybe not serializable like
`Connection` and `PreparedStatement`. So you can make them `transient` and
let them not participate in the serialization.
Hope this helps.
Polarisary 于2019年12月26日周四 下午4:47写道:
> Hi all
> When I use udf, it throws
Hi all
When I use udf, it throws Unable to serialize Exception as follows:
Exception in thread "main" org.apache.flink.table.api.ValidationException:
Unable to serialize object 'UserTableFunction' of class
‘udtf.UserTableFunction'.
at
org.apache.flink.table.utils.EncodingUtils.encod