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: [email protected]
For additional commands, e-mail: [email protected]