Allison Wang created SPARK-43967:
------------------------------------

             Summary: Support Python UDTFs with empty return values
                 Key: SPARK-43967
                 URL: https://issues.apache.org/jira/browse/SPARK-43967
             Project: Spark
          Issue Type: Sub-task
          Components: PySpark
    Affects Versions: 3.5.0
            Reporter: Allison Wang


Support UDTFs with empty returns, for example:

 
{code:java}
@udtf(returnType="a: int")
class TestUDTF:
    def eval(self, a: int):
        ... {code}
Currently, this fails with the exception 

 
{code:java}
TypeError: 'NoneType' object is not iterable {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to