-
Notifications
You must be signed in to change notification settings - Fork 242
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
Ensure an executor broadcast is in a single batch [databricks] #10660
Ensure an executor broadcast is in a single batch [databricks] #10660
Conversation
… of RequireSingleBatch Signed-off-by: Navin Kumar <[email protected]>
Signed-off-by: Navin Kumar <[email protected]>
build |
...main/spark330db/scala/org/apache/spark/sql/rapids/execution/GpuExecutorBroadcastHelper.scala
Outdated
Show resolved
Hide resolved
...c/main/spark330db/scala/org/apache/spark/sql/rapids/execution/GpuBroadcastHashJoinExec.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Navin Kumar <[email protected]>
Signed-off-by: Navin Kumar <[email protected]>
build |
...main/spark330db/scala/org/apache/spark/sql/rapids/execution/GpuExecutorBroadcastHelper.scala
Outdated
Show resolved
Hide resolved
...main/spark330db/scala/org/apache/spark/sql/rapids/execution/GpuExecutorBroadcastHelper.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Navin Kumar <[email protected]>
build |
""" | ||
select /*+ BROADCAST(df_school) */ * from df, df_school where df.id == df_school.id | ||
""" |
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.
nit: PySpark API looks nicer and would not require resorting to view registration along the lines
df.join(broadcast(df_school), df.id == df_school.id)
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.
Understood, but this test requires a join hint to ensure a broadcast hash join is used in this test.
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.
Signed-off-by: Navin Kumar <[email protected]>
build |
Fixes #10645.
This wraps the GpuShuffleCoalesceIterator into a GpuCoalesceIterator with a coalesce goal of RequireSingleBatch. This ensures that we always get a single batch to use for the broadcast join. Also added an integration test that tweaks the batch size to test this codepath.