GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/18700
[SPARK-21499] [SQL] Support creating persistent function for Spark
UDAF(UserDefinedAggregateFunction)
## What changes were proposed in this pull request?
This PR is to enable users to create persistent Scala UDAF (that extends
UserDefinedAggregateFunction).
```SQL
CREATE FUNCTION myDoubleAvg AS 'test.org.apache.spark.sql.MyDoubleAvg'
```
## How was this patch tested?
Added test cases
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark javaUDFinScala
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18700.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #18700
----
commit 40281551f461ecb5f3c1720d1ed45d885e5353a6
Author: gatorsmile <[email protected]>
Date: 2017-07-21T07:59:09Z
support UDAF
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]