From db3a1c1f2587d8f8b2916d774c1f05181f80a0c1 Mon Sep 17 00:00:00 2001 From: YenchangChan Date: Wed, 22 May 2024 11:40:08 +0800 Subject: [PATCH] fix: get partitions incorrect --- service/clickhouse/clickhouse_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/clickhouse/clickhouse_service.go b/service/clickhouse/clickhouse_service.go index e3a65e8..47eb359 100644 --- a/service/clickhouse/clickhouse_service.go +++ b/service/clickhouse/clickhouse_service.go @@ -1172,7 +1172,7 @@ func GetPartitions(conf *model.CKManClickHouseConfig, table string) (map[string] max(max_time), disk_name FROM system.parts -WHERE (database = '%s') AND (table = '%s') +WHERE (database = '%s') AND (table = '%s') AND (active = 1) GROUP BY partition, disk_name