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 <gatorsm...@gmail.com>
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to