From 80841ac3017b5e738a1e7744cb6eab661a955fa6 Mon Sep 17 00:00:00 2001 From: Song Gao Date: Mon, 5 Sep 2022 15:40:55 +0800 Subject: [PATCH] planner: fix idxHJ/idxMJ with wrong self pointer (#37610) --- planner/core/initialize.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/planner/core/initialize.go b/planner/core/initialize.go index 5739d8bd79b97..3d0f0f0c12f3e 100644 --- a/planner/core/initialize.go +++ b/planner/core/initialize.go @@ -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 } @@ -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 }