Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardinality always 0 #26944

Closed
311ybb opened this issue Aug 5, 2021 · 2 comments · Fixed by pingcap/docs-cn#7261
Closed

Cardinality always 0 #26944

311ybb opened this issue Aug 5, 2021 · 2 comments · Fixed by pingcap/docs-cn#7261
Assignees
Labels
severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@311ybb
Copy link

311ybb commented Aug 5, 2021

INFORMATION_SCHEMA.STATISTICS and SHOW INDEX From xxx column 'Cardinality' always 0, even after analyze table executed.

@morgo morgo added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra labels Aug 6, 2021
@djshow832 djshow832 added sig/planner SIG: Planner and removed sig/sql-infra SIG: SQL Infra labels Aug 6, 2021
@time-and-fate
Copy link
Member

Our current implementation doesn't use these interfaces to display cardinality. We'll update our documents to reflect this.
You can use the SHOW STATS_META statement to get the row count of a table.

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants