Description
Currently, if you have a UDTF like this:
class TestUDTF: def eval(self, a: int): yield a
and run the UDTF, it will fail with a confusing error message like
Unexpected tuple 1 with StructType
Note this works when arrow is enabled. We should improve error messages for regular UDTFs.