-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Support EXPLAIN ANALYZE with creating unspecified partial stats #128904
Description
We require reqStats to have only 1 element in createPartialStatsPlan()
cockroach/pkg/sql/distsql_plan_stats.go
Line 281 in c9f233b
| func (dsp *DistSQLPlanner) createPartialStatsPlan( |
This works for CREATE STATISTICS <stat_name> FROM <table_name> USING EXTREMES where we don't specify a column since we plan and run create stats separately for each column in the default set. However, this doesn't support EXPLAIN ANALYZE CREATE STATISTICS <stat_name> FROM <table_name> USING EXTREMES and certain other EXPLAINS (such as EXPLAIN (VEC)) since we pass job details with all of the columns in the default column set together and expect a single plan:
cockroach/pkg/sql/distsql_physical_planner.go
Line 3802 in 3405736
| plan, err = dsp.createPlanForCreateStats( |
Jira issue: CRDB-41268
Metadata
Metadata
Assignees
Labels
Type
Projects
Status