GitHub user viirya opened a pull request:

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

    [SPARK-20612][SQL][WIP] Throw exception when there is unresolvable 
attributes in Filter

    ## What changes were proposed in this pull request?
    
    We have a rule in `Analyzer` that adds missing attributes in a Filter into 
its child plan. It makes the following codes work:
    
        val df = Seq((1, "a"), (2, "b"), (3, "c")).toDF("x", "y")
        df.select("y").where("x=1")
    
    It should throw an analysis exception instead of implicitly adding the 
missing attributes into underlying plan.
    
    ## How was this patch tested?
    
    Jenkins tests.
    
    Please review http://spark.apache.org/contributing.html before opening a 
pull request.


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

    $ git pull https://github.com/viirya/spark-1 SPARK-20612

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

    https://github.com/apache/spark/pull/17874.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 #17874
    
----
commit 010d046edfc273ecb12a16a36c47af72eab57881
Author: Liang-Chi Hsieh <[email protected]>
Date:   2017-05-05T09:29:58Z

    Throw exception when there is unresolvable attributes in Filter.

----


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

Reply via email to