Skip to content

stats: SHOW STATISTICS and SHOW HISTOGRAM statements #20323

@RaduBerinde

Description

@RaduBerinde

This issue tracks adding the following statements:

  • SHOW STATISTICS FOR <table>: an alias for SELECT .. FROM system.table_statistics WHERE tableID = .. The histogram column should be replaced with a boolean column which indicates if there is a histogram.
  • SHOW HISTOGRAM <statID> FOR <table>: decodes a histogram and returns it as a table, with one row per bucket.

CC @rytaft

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions