-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: Support dynamic filters for Right Join #12057
feat: Support dynamic filters for Right Join #12057
Conversation
✅ Deploy Preview for meta-velox canceled.
|
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.
@xiaodouchen Thank you for adding this optimization. Looks good to me.
Would you update the documentation at https://facebookincubator.github.io/velox/develop/joins.html#dynamic-filter-pushdown ? It currently says "Dynamic filter pushdown optimization is enabled for inner, left semi, and right semi joins."
Would you also check if we get Fuzzer coverage for this new code flow. CC: @kagamiori
6b6fb55
to
2943bba
Compare
@mbasmanova
|
Dynamic filter pushdown optimization is enabled for inner, left semi, and | ||
right semi joins. | ||
Dynamic filter pushdown optimization is enabled for inner, left semi, right semi | ||
and right joins. |
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.
Is this supported for left join as well? If so, please, update the sentence.
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.
No, it can not be supported for left join. Because left join needs to output rows that do not match, if the dynamic filter is pushed down to the scan, it would filter out these rows.
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.
Good point. Thank you for clarifying.
Nice. Would you mention this in the PR description? |
@mbasmanova Yes, done. |
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.
@xiaodouchen Thank you!
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.
@xiaodouchen thanks for the optimization!
@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@kagamiori merged this pull request in 76bb570. |
Support dynamic filters for right join and this new code flow has been
covered in Join Fuzzer. Note: Right join can not be completely replaced
with a pushed down filter when build side has no dependent columns.