Skip to content

Instantly share code, notes, and snippets.

View DoubleDi's full-sized avatar
🎯
Focusing

Denis DoubleDi

🎯
Focusing
View GitHub Profile
@sanchezzzhak
sanchezzzhak / clickhouse-get-tables-size.sql
Created January 18, 2018 13:43
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