You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2022/03/08 16:31:00 UTC
[jira] [Assigned] (SPARK-37753) Fine tune logic to demote Broadcast hash join in DynamicJoinSelection
[ https://issues.apache.org/jira/browse/SPARK-37753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan reassigned SPARK-37753:
-----------------------------------
Assignee: Eugene Koifman
> Fine tune logic to demote Broadcast hash join in DynamicJoinSelection
> ----------------------------------------------------------------------
>
> Key: SPARK-37753
> URL: https://issues.apache.org/jira/browse/SPARK-37753
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.4.8
> Reporter: Eugene Koifman
> Assignee: Eugene Koifman
> Priority: Major
>
> In the current implementation of {{DynamicJoinSelection}} the logic checks if one side of the join has high ratio of empty partitions and adds a NO_BROADCAST hint on that side since a shuffle join can short-circuit the local joins where one side is empty.
> This logic is doesn't make sense for all join type. For example, a Left Outer Join cannot short circuit if RHS is empty so we should not inhibit BHJ. On the other hand a LOJ executed as a shuffle join where the LHS has many empty can short circuit the local join so we should inhibit the BHJ because BHJ will use {{OptimizeShuffleWithLocalRead}} which will re-assemble LHS partitions as the were before the shuffle and thus may not have many empty ones any more.
> This supersedes SPARK-37193
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org