-
Notifications
You must be signed in to change notification settings - Fork 989
Partially revert broadcast-join change #20779
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
base: main
Are you sure you want to change the base?
Conversation
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.
All changes to this file are directly reverting #20724
| small_df = _concat( | ||
| *await get_small_table(context, small_child, small_ch), | ||
| context=ir_context, | ||
| ) | ||
| if context.comm().nranks > 1 and not small_duplicated: | ||
| small_dfs, small_size = await get_small_table(context, small_child, small_ch) | ||
| need_allgather = context.comm().nranks > 1 and not small_duplicated | ||
| if ( | ||
| ir.options[0] != "Inner" or small_size < target_partition_size | ||
| ) and not need_allgather: | ||
| # Pre-concat for non-inner joins, otherwise | ||
| # we need a local shuffle, and face additional | ||
| # memory pressure anyway. | ||
| small_dfs = [_concat(*small_dfs, context=ir_context)] |
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.
Before #20724, we were only pre-concatenating for non-inner joins (to avoid the extra local shuffle).
After #20724, we were always pre-concatenating.
Now, we pre-concatenate when it makes sense:
- To avoid the local shuffle (e.g. non-inner joins)
- We have small data
- We aren't already concatenating via an allgather
Description
Checklist