GitHub user liancheng opened a pull request:

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

    [SPARK-19737][SQL] New analysis rule for reporting unregistered functions 
without relying on relation resolution

    ## What changes were proposed in this pull request?
    
    This PR adds a new `Once` analysis rule batch consists of a single analysis 
rule `LookupFunctions` that performs simple existence check over 
`UnresolvedFunctions` without actually resolving them.
    
    The benefit of this rule is that it doesn't require function arguments to 
be resolved first and therefore doesn't rely on relation resolution, which may 
incur potentially expensive partition/schema discovery cost.
    
    Please refer to [SPARK-19737][1] for more details about the motivation.
    
    ## How was this patch tested?
    
    New test case added in `AnalysisErrorSuite`.

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

    $ git pull https://github.com/liancheng/spark spark-19737-lookup-functions

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

    https://github.com/apache/spark/pull/17168.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 #17168
    
----
commit c9da94ce0d15333f30653f67c6a1af6bd0f10589
Author: Cheng Lian <l...@databricks.com>
Date:   2017-03-05T06:16:26Z

    New analysis rule for detect undefined functions more quickly

----


---
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