Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19714#discussion_r153736381
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala ---
    @@ -153,6 +151,27 @@ abstract class SparkStrategies extends 
QueryPlanner[SparkPlan] {
     
           // --- BroadcastHashJoin 
--------------------------------------------------------------------
     
    +      case ExtractEquiJoinKeys(joinType, leftKeys, rightKeys, condition, 
left, right)
    +        if canBuildRight(joinType) && canBuildLeft(joinType)
    +          && left.stats.hints.broadcast && right.stats.hints.broadcast =>
    --- End diff --
    
    I have an idea to combine these three cases to `broadcastBuildSide` 
function:
    
https://github.com/apache/spark/blob/a2cf0ced6615e342e84e270cf060ace69eb3ba0f/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala#L150-L185


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to