You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrew Malone Melo (JIRA)" <ji...@apache.org> on 2018/08/26 02:23:00 UTC
[jira] [Commented] (SPARK-23836) Support returning StructType to
the level support in GroupedMap Arrow's "scalar" UDFS (or similar)
[ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org