Skip to content

Commit

Permalink
fix: get partitions incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed May 22, 2024
1 parent c6d96fb commit db3a1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/clickhouse/clickhouse_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db3a1c1

Please sign in to comment.