GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/19050
[SPARK-21835][SQL][WIP] RewritePredicateSubquery should not produce
unresolved query plans
## What changes were proposed in this pull request?
`RewritePredicateSubquery` rewrites correlated subquery to join operations.
`RewritePredicateSubquery` can produce unresolved query plans due to
conflicting attributes. The unresolved query plans will fail structural
integrity check. We should deduplicate the conflicting attributes in the
rewritten join.
## How was this patch tested?
WIP to add test later
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 SPARK-21835
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19050.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 #19050
----
commit edb6271807a1ad8704f5d1715592af79a7c0b63a
Author: Liang-Chi Hsieh <[email protected]>
Date: 2017-08-25T05:40:17Z
Dedup join after RewritePredicateSubquery.
----
---
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]