GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/17935
[SPARK-20690][SQL][WIP] Analyzer shouldn't add missing attributes through
subqueries
## What changes were proposed in this pull request?
We add missing attributes into Filter in Analyzer. But we shouldn't do it
through subqueries like this:
select 1 from (select 1 from onerow t1 LIMIT 1) where t1.c1=1
This query works in current codebase. However, the outside where clause
shouldn't be able to refer `t1.c1` attribute.
## 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-20690
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17935.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 #17935
----
commit bb16061f2c595567fcd5fba6b91865d92471d42e
Author: Liang-Chi Hsieh <[email protected]>
Date: 2017-05-10T08:25:40Z
Analyzer shouldn't add missing attributes through subqueries.
----
---
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]