Skip to content

Commit 5e323ab

Browse files
committed
sql: remove unused planner arg in constructPlan
Release note: None
1 parent 15af2b5 commit 5e323ab

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pkg/sql/distsql_spec_exec_factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ func (e *distSQLSpecExecFactory) ConstructPlan(
12961296
} else {
12971297
p.physPlan.onClose = e.planCtx.getCleanupFunc()
12981298
}
1299-
return constructPlan(e.planner, root, subqueries, cascades, triggers, checks, rootRowCount, flags)
1299+
return constructPlan(root, subqueries, cascades, triggers, checks, rootRowCount, flags)
13001300
}
13011301

13021302
func (e *distSQLSpecExecFactory) ConstructExplainOpt(

pkg/sql/exec_factory_util.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
)
2222

2323
func constructPlan(
24-
planner *planner,
2524
root exec.Node,
2625
subqueries []exec.Subquery,
2726
cascades, triggers []exec.PostQuery,

pkg/sql/opt_exec_factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ func (ef *execFactory) ConstructPlan(
12201220
if spool, ok := root.(*spoolNode); ok {
12211221
root = spool.input
12221222
}
1223-
return constructPlan(ef.planner, root, subqueries, cascades, triggers, checks, rootRowCount, flags)
1223+
return constructPlan(root, subqueries, cascades, triggers, checks, rootRowCount, flags)
12241224
}
12251225

12261226
// urlOutputter handles writing strings into an encoded URL for EXPLAIN (OPT,

0 commit comments

Comments
 (0)