Skip to content

Commit

Permalink
is_active -> active
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Nov 17, 2023
1 parent 3051a59 commit 9688b96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posthog/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def clickhouse_row_count():
for table in CLICKHOUSE_TABLES:
try:
QUERY = """SELECT sum(rows) rows from system.parts
WHERE table = '{table}' and is_active;"""
WHERE table = '{table}' and active;"""
query = QUERY.format(table=table)
rows = sync_execute(query)[0][0]
row_count_gauge.labels(table_name=table).set(rows)
Expand Down Expand Up @@ -746,6 +746,7 @@ def clickhouse_part_count():
QUERY = """
SELECT table, count(1) freq
FROM system.parts
WHERE active
GROUP BY table
ORDER BY freq DESC;
"""
Expand Down

0 comments on commit 9688b96

Please sign in to comment.