pingcap / pingcap/tidb

display partial stats used when index stats are missing

Open
#62,909 0 comments 0 reactions 0 assignees View on GitHub
contribution type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
After this PR, https://github.com/pingcap/tidb/pull/62725, when estimating cardinality for an index, if it doesn't have stats we will try and supplement it with existing column stats. However, the explain details remain the same as before, only showing stats as missing. For easier debugging, update this to display which partial column stats were used in the estimation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.