Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Jul 5, 2024
1 parent 754259e commit efc22f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/planner/core/find_best_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ func iteratePhysicalPlan4BaseLogical(
curCntPlan := int64(1)
for j, child := range p.Children() {
childProp := selfPhysicalPlan.GetChildReqProps(j)
if !p.SCtx().GetSessionVars().InRestrictedSQL {
logutil.BgLogger().Info("fuck child", zap.String("child.ExplainInfo()", child.ExplainInfo()))
}

childTask, cnt, err := child.FindBestTask(childProp, &PlanCounterDisabled, opt)
childCnts[j] = cnt
if err != nil {
Expand Down
4 changes: 4 additions & 0 deletions pkg/planner/core/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package core

import (
"fmt"
"math"

"github.com/pingcap/errors"
Expand Down Expand Up @@ -1093,6 +1094,9 @@ func (sel *PhysicalSelection) Attach2Task(tasks ...base.Task) base.Task {
return attachPlan2Task(sel, mppTask.Copy())
}
}
if tasks[0] == nil {
fmt.Println("fuck")
}
t := tasks[0].ConvertToRootTask(sel.SCtx())
return attachPlan2Task(sel, t)
}
Expand Down

0 comments on commit efc22f4

Please sign in to comment.