关注 spark技术分享,
撸spark源码 玩spark最佳实践

BroadcastNestedLoopJoinExec

BroadcastNestedLoopJoinExec Binary Physical Operator

BroadcastNestedLoopJoinExec is a binary physical operator (with two child left and right physical operators) that is created (and converted to) when JoinSelection physical plan strategy finds a Join logical operator that meets either case:

Note
BroadcastNestedLoopJoinExec is the default physical operator when no other operators have matched selection requirements.
Note

canBuildRight join types are:

  • CROSS, INNER, LEFT ANTI, LEFT OUTER, LEFT SEMI or Existence

canBuildLeft join types are:

  • CROSS, INNER, RIGHT OUTER

Table 1. BroadcastNestedLoopJoinExec’s Performance Metrics
Key Name (in web UI) Description

numOutputRows

number of output rows

spark sql BroadcastNestedLoopJoinExec webui details for query.png
Figure 1. BroadcastNestedLoopJoinExec in web UI (Details for Query)
Table 2. BroadcastNestedLoopJoinExec’s Required Child Output Distributions
BuildSide Left Child Right Child

BuildLeft

BroadcastDistribution (uses IdentityBroadcastMode broadcast mode)

UnspecifiedDistribution

BuildRight

UnspecifiedDistribution

BroadcastDistribution (uses IdentityBroadcastMode broadcast mode)

Creating BroadcastNestedLoopJoinExec Instance

BroadcastNestedLoopJoinExec takes the following when created:

赞(0) 打赏
未经允许不得转载:spark技术分享 » BroadcastNestedLoopJoinExec
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏