spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Erlandson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-10915) Add support for UDAFs in Python
Date Wed, 28 Jun 2017 01:37:01 GMT

    [ 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


Mime
View raw message