Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.11.0
Description
For the following Python UDTF which return type is not a generator:
# test specify the input_types
@udtf(input_types=[DataTypes.BIGINT()],
result_types=[DataTypes.BIGINT(), DataTypes.BIGINT(), DataTypes.BIGINT()])
def split(x):
return Row(10, 10, 10)
When used in a job, the operator containing the UDTF will not emit data to the downstream operator and there is also no exception thrown. The job just finished without any result.
We should properly handle this case: either support this use case or throw a proper exception if we don't want to support this case.