-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-19712][SQL][FOLLOW-UP] Don't do partial pushdown when pushing down LeftAnti joins below Aggregate or Window operators. #24253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #104118 has finished for PR 24253 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we move the part of the comments about diffrent join type to
joinType match {
case LeftSemi => Filter(stayUp.reduce(And), newAgg)
case _ => join
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cloud-fan Ok.. sounds good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about
joinType match {
// In case of left-semi join, ...
case LeftSemi => Filter(stayUp.reduce(And), newPlan)
// In case of left-anti join, ...
case _ => join
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cloud-fan I think it would look a bit crowded :-). The actual code may look buried within the comment. Let me give it a try and we can a take a call after ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cloud-fan Just made the change... Let me know if looks okay to you.
|
Test build #104157 has finished for PR 24253 at commit
|
|
Test build #104158 has finished for PR 24253 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we restore this comment now? I think the old version is pretty good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
|
Test build #104164 has finished for PR 24253 at commit
|
|
@dilipbiswal Did we cover all the places? in |
|
@cloud-fan Thanks a lot. I did miss it. Let me look into it. |
|
Test build #104179 has finished for PR 24253 at commit
|
…ins below Aggregate or window operators
82112a8 to
72a4552
Compare
|
Oh, the root cause of UT failures seems to be another commit on the |
|
@dongjoon-hyun Thank you. Will the current run fail as well ? |
|
I guess so. |
|
@dongjoon-hyun ok.. thanks a lot for letting me know :-) |
|
Retest this please. |
|
Test build #104192 has finished for PR 24253 at commit
|
|
Test build #104196 has finished for PR 24253 at commit
|
|
thanks, merging to master! |
What changes were proposed in this pull request?
After 23750, we may pushdown left anti joins below aggregate and window operators with a partial join condition. This is not correct and was pointed out by @hvanhovell and @cloud-fan here. This pr addresses their comments.
How was this patch tested?
Added two new tests to verify the behaviour.