Hey team,

We are migrating our Flink codes from Flink-1.9 to Flink-1.14 and as a part
of this, we are updating a bunch of UDFs. Wanted to understand, how to
provide *data type hints for the UDFs which return Object[]*.

For example, if the return type is simply Object something like this works.

*@DataTypeHint(inputGroup = InputGroup.ANY)*

But could not find any examples on how to add type hints in case of an eval
function returning Object[]. If we explicitly, return something like
List<Object> instead of providing type hints works, but this might cause
issues downstream since lots of running jobs currently use in-built UDFs
like `*Cardinality*` on the result of the UDFs which fails if the return
type is List<Object>.

Thanks in advance.
//arujit

Reply via email to