You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xinrong Meng (Jira)" <ji...@apache.org> on 2023/01/31 02:24:00 UTC

[jira] [Created] (SPARK-42247) `returnType` attribute of UDF when the user-specified return type has column name embeded

Xinrong Meng created SPARK-42247:
------------------------------------

             Summary: `returnType` attribute of UDF when the user-specified return type has column name embeded
                 Key: SPARK-42247
                 URL: https://issues.apache.org/jira/browse/SPARK-42247
             Project: Spark
          Issue Type: Sub-task
          Components: Connect, PySpark
    Affects Versions: 3.4.0
            Reporter: Xinrong Meng


The inconsistency can be reproduced as shown below:

{code}
# connect
>>> pandas_udf(lambda x : x + 1, "id int").returnType
IntegerType()

# vanilla PySpark
>>> pandas_udf(lambda x : x + 1, "id int").returnType
StructType([StructField('id', IntegerType(), True)])
{code}




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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org