You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Erik Erlandson (JIRA)" <ji...@apache.org> on 2017/06/28 01:37:01 UTC
[jira] [Commented] (SPARK-10915) Add support for UDAFs in Python
[ https://issues.apache.org/jira/browse/SPARK-10915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16065787#comment-16065787 ]
Erik Erlandson commented on SPARK-10915:
----------------------------------------
This would be great for exposing {{TDigest}} aggregation to py-spark datasets. (see https://github.com/isarn/isarn-sketches#t-digest)
Currently the newer {{Aggregator}} trait makes this easy to do for datasets in Scala. Writing the alternative {{UserDefinedAggregateFunction}} is possible, although I'd have to code my own serializor for a TDigest UDT instead of just using {{Encoder.kryo}}. But UDAF to python is a hack at best: (see https://stackoverflow.com/a/33257733/3669757)
> Add support for UDAFs in Python
> -------------------------------
>
> Key: SPARK-10915
> URL: https://issues.apache.org/jira/browse/SPARK-10915
> Project: Spark
> Issue Type: Improvement
> Components: PySpark, SQL
> Reporter: Justin Uang
>
> This should support python defined lambdas.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org