Skip to content

Commit

Permalink
planner: fix idxHJ/idxMJ with wrong self pointer (#37610)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Sep 5, 2022
1 parent a942121 commit 80841ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planner/core/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ func (p PhysicalIndexMergeJoin) Init(ctx sessionctx.Context) *PhysicalIndexMerge
p.tp = plancodec.TypeIndexMergeJoin
p.id = ctx.GetSessionVars().PlanID
p.ctx = ctx
p.self = &p
return &p
}

Expand All @@ -502,6 +503,7 @@ func (p PhysicalIndexHashJoin) Init(ctx sessionctx.Context) *PhysicalIndexHashJo
p.tp = plancodec.TypeIndexHashJoin
p.id = ctx.GetSessionVars().PlanID
p.ctx = ctx
p.self = &p
return &p
}

Expand Down

0 comments on commit 80841ac

Please sign in to comment.