From ff1e57be9df6fed07dd5fc4bb723d83fc67006dc Mon Sep 17 00:00:00 2001 From: vaibhavmashal Date: Sun, 23 Aug 2026 20:47:33 +0530 Subject: [PATCH] fix(api): return name and stats fields in AVAILABLE_TABLES_SQL --- housewatch/clickhouse/queries/sql.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/housewatch/clickhouse/queries/sql.py b/housewatch/clickhouse/queries/sql.py index 4e1f251..8944d21 100644 --- a/housewatch/clickhouse/queries/sql.py +++ b/housewatch/clickhouse/queries/sql.py @@ -269,7 +269,15 @@ """ AVAILABLE_TABLES_SQL = """ -SELECT database, table +SELECT + database, + table, + table as name, + total_bytes, + formatReadableSize(total_bytes) as readable_bytes, + total_rows, + engine, + partition_key FROM system.tables WHERE database NOT ILIKE 'information_schema' """