[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org