Skip to content

[SPARK-21645]left outer join synchronize the condition from left table to right - #21161

Closed
bakea wants to merge 1 commit into
apache:masterfrom
bakea:my_change
Closed

[SPARK-21645]left outer join synchronize the condition from left table to right#21161
bakea wants to merge 1 commit into
apache:masterfrom
bakea:my_change

Conversation

@bakea

@bakeabakea commented Apr 26, 2018

Copy link
Copy Markdown

What changes were proposed in this pull request?

JIRA Issue:https://issues.apache.org/jira/browse/SPARK-21645
Change the optimize rule of leftouter join, if the filter column is contained in join column, the can synchronize the filter from left to right, For example, left join sql:
Select * from a left outer join b on a.id=b.id where a.id=12345;

After join optimizer rule, the filter a.id = 12345 of table a should be synchronized to table b(b.id=12345)

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

To see the query plan by explain the sql like 'Select * from a left outer join b on a.id=b.id where a.id=12345', guarantee the filter a.id=12345 is synchronized to table b.

@bakeabakea changed the title left outer join synchronize the condition from left table to right[SPARK-21645]left outer join synchronize the condition from left table to rightApr 26, 2018
@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@wangyum

Copy link
Copy Markdown
Member

I think it has fixed by SPARK-21479.

@wangyumwangyum mentioned this pull request Nov 10, 2018
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
Closesapache#21766Closesapache#21679Closesapache#21161Closesapache#20846Closesapache#19434Closesapache#18080Closesapache#17648Closesapache#17169
Add:
Closesapache#22813Closesapache#21994Closesapache#22005Closesapache#22463
Add:
Closesapache#15899
Add:
Closesapache#22539Closesapache#21868Closesapache#21514Closesapache#21402Closesapache#21322Closesapache#21257Closesapache#20163Closesapache#19691Closesapache#18697Closesapache#18636Closesapache#17176Closesapache#23001 from wangyum/CloseStalePRs.
Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: hyukjinkwon <gurwls223@apache.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bakea@AmplabJenkins@wangyum