Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Dec 30, 2024
1 parent dd40026 commit 28f38c8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/planner/core/exhaust_physical_plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,10 @@ func getHashJoins(p *logicalop.LogicalJoin, prop *property.PhysicalProperty) (jo
leftJoinKeys, _, isNullEQ, _ := p.GetJoinKeys()
leftNAJoinKeys, _ := p.GetNAJoinKeys()
if p.SCtx().GetSessionVars().UseHashJoinV2 && joinversion.IsHashJoinV2Supported() && canUseHashJoinV2(p.JoinType, leftJoinKeys, isNullEQ, leftNAJoinKeys) {
if forceLeftToBuild {
joins = append(joins, getHashJoin(p, prop, 1, false))
} else if forceRightToBuild {
joins = append(joins, getHashJoin(p, prop, 1, true))
} else {
if !forceLeftToBuild {
joins = append(joins, getHashJoin(p, prop, 1, false))
}
if !forceRightToBuild {
joins = append(joins, getHashJoin(p, prop, 1, true))
}
} else {
Expand Down

0 comments on commit 28f38c8

Please sign in to comment.