Skip to content

Commit 20c631c

Browse files
craig[bot]mgartner
andcommitted
Merge #148480
148480: sql: remove unused planner arg in constructPlan r=mgartner a=mgartner Release note: None Co-authored-by: Marcus Gartner <[email protected]>
2 parents 4fa3974 + 5e323ab commit 20c631c

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
@@ -1300,7 +1300,7 @@ func (e *distSQLSpecExecFactory) ConstructPlan(
13001300
} else {
13011301
p.physPlan.onClose = e.planCtx.getCleanupFunc()
13021302
}
1303-
return constructPlan(e.planner, root, subqueries, cascades, triggers, checks, rootRowCount, flags)
1303+
return constructPlan(root, subqueries, cascades, triggers, checks, rootRowCount, flags)
13041304
}
13051305

13061306
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
@@ -1224,7 +1224,7 @@ func (ef *execFactory) ConstructPlan(
12241224
if spool, ok := root.(*spoolNode); ok {
12251225
root = spool.input
12261226
}
1227-
return constructPlan(ef.planner, root, subqueries, cascades, triggers, checks, rootRowCount, flags)
1227+
return constructPlan(root, subqueries, cascades, triggers, checks, rootRowCount, flags)
12281228
}
12291229

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

0 commit comments

Comments
 (0)