Tuple2 UDF not working

pankaj_kaushal
New Contributor

From a UDF i am trying to return a tuple. But looks like the tuple is not serialising and hence getting empty tuple.

Can some help me on this.

Attached code and output.