Skip to content

sql/stats: after inject or restore of partial statistics, cannot create merged statistics #94101

@faizaanmadhani

Description

@faizaanmadhani

Now that users can collect partial statistics at the extremes of columns using CREATE STATISTICS ON <col_name> FROM <table_name> USING EXTREMES, ensure that statements bundles include both full statistics and partial statistics.

The other thing we need to be sure of is that merged statistics are correctly created when injecting statment bundle stats so that we can mimic customer behavior.

Jira issue: CRDB-22695

Epic CRDB-25383

Metadata

Metadata

Assignees

Labels

A-sql-table-statsTable statistics (and their automatic refresh).C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries Team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions