Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <[email protected]>
  • Loading branch information
AilinKid committed Mar 28, 2024
1 parent a2f7d45 commit ef616c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/planner/core/optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ func logicalOptimize(ctx context.Context, flag uint64, logic LogicalPlan) (Logic
}
}

opt.RecordFinalLogicalPlan(logic.BuildPlanTrace())
opt.RecordFinalLogicalPlan(logic.BuildPlanTrace)
return logic, err
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/planner/util/optTracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ func (op *LogicalOptimizeOp) AppendStepToCurrent(id int, tp string, reason, acti
}

// RecordFinalLogicalPlan records the final logical plan.
func (op *LogicalOptimizeOp) RecordFinalLogicalPlan(planTrace *tracing.PlanTrace) {
func (op *LogicalOptimizeOp) RecordFinalLogicalPlan(build func() *tracing.PlanTrace) {
if op == nil || op.tracer == nil {
return
}
op.tracer.RecordFinalLogicalPlan(planTrace)
op.tracer.RecordFinalLogicalPlan(build())
}

0 comments on commit ef616c4

Please sign in to comment.