Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocLv/408290002ecb44eedc2b82c4d3541182 to your computer and use it in GitHub Desktop.
Save rocLv/408290002ecb44eedc2b82c4d3541182 to your computer and use it in GitHub Desktop.
clickhouse get tables size
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment