From 508c959d2c035ae804c6d1b2504cea01b96fe30f Mon Sep 17 00:00:00 2001 From: M1ha Date: Tue, 22 Aug 2017 13:25:40 +0500 Subject: [PATCH] Fixed bug with getting SystemPart info on actual ClickHouse version (1.1.54245) --- src/infi/clickhouse_orm/system_models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/infi/clickhouse_orm/system_models.py b/src/infi/clickhouse_orm/system_models.py index 8c66550..b0dce51 100644 --- a/src/infi/clickhouse_orm/system_models.py +++ b/src/infi/clickhouse_orm/system_models.py @@ -22,7 +22,10 @@ class SystemPart(Model): engine = StringField() # Name of the table engine, without parameters. partition = StringField() # Name of the partition, in the format YYYYMM. name = StringField() # Name of the part. - replicated = UInt8Field() # Whether the part belongs to replicated data. + + # This field is present in the docs (https://clickhouse.yandex/docs/en/single/index.html#system-parts), + # but is absent in ClickHouse (in version 1.1.54245) + # replicated = UInt8Field() # Whether the part belongs to replicated data. # Whether the part is used in a table, or is no longer needed and will be deleted soon. # Inactive parts remain after merging.