[ https://issues.apache.org/jira/browse/SPARK-23836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16592751#comment-16592751 ]
Andrew Malone Melo commented on SPARK-23836: -------------------------------------------- [~bryanc] - I think it could be either that or a (possibly nested) dict of pandas.Series For my use case (which is how I stumbled onto this ticket), with non-vectorized UDFs, I use structs to pack multiple return values into a single column. It would be nice to do something similar with the vectorized UDFs as well. > Support returning StructType to the level support in GroupedMap Arrow's > "scalar" UDFS (or similar) > -------------------------------------------------------------------------------------------------- > > Key: SPARK-23836 > URL: https://issues.apache.org/jira/browse/SPARK-23836 > Project: Spark > Issue Type: Improvement > Components: PySpark > Affects Versions: 2.4.0 > Reporter: holdenk > Priority: Major > > Currently not all of the supported types can be returned from the scalar > pandas UDF type. This means if someone wants to return a struct type doing a > map operation right now they either have to do a "junk" groupBy or use the > non-vectorized results. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org