[ https://issues.apache.org/jira/browse/SPARK-42247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xinrong Meng updated SPARK-42247: --------------------------------- Summary: Standardize `returnType` property of UserDefinedFunction (was: `returnType` attribute of UDF when the user-specified return type has column name embeded) > Standardize `returnType` property of UserDefinedFunction > -------------------------------------------------------- > > 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 > Priority: Major > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org