GitHub user rxin opened a pull request:

    https://github.com/apache/spark/pull/21938

    [SPARK-24982][SQL] UDAF resolution should not throw AssertionError

    ## What changes were proposed in this pull request?
    When user calls anUDAF with the wrong number of arguments, Spark previously 
throws an AssertionError, which is not supposed to be a user-facing exception.  
This patch updates it to throw AnalysisException instead.
    
    ## How was this patch tested?
    Updated test case udaf.sql.out.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rxin/spark SPARK-24982

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21938.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 #21938
    
----
commit 84262dc21dd9f9aa409dd5e873d31d5b26a231f3
Author: Reynold Xin <rxin@...>
Date:   2018-07-31T21:00:20Z

    [SPARK-24982][SQL] UDAF resolution should not throw java.lang.AssertionError

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to