diff --git a/src/Storages/MergeTree/MergeTreeIndexGranularity.h b/src/Storages/MergeTree/MergeTreeIndexGranularity.h index 1e700798a6a..01ba4796ce0 100644 --- a/src/Storages/MergeTree/MergeTreeIndexGranularity.h +++ b/src/Storages/MergeTree/MergeTreeIndexGranularity.h @@ -68,7 +68,6 @@ public: virtual uint64_t getBytesAllocated() const = 0; virtual std::shared_ptr optimize() const = 0; - virtual std::string describe() const = 0; }; diff --git a/src/Storages/MergeTree/MergeTreeIndexGranularityConstant.cpp b/src/Storages/MergeTree/MergeTreeIndexGranularityConstant.cpp index 45e54156ec0..03bfe5d7b8f 100644 --- a/src/Storages/MergeTree/MergeTreeIndexGranularityConstant.cpp +++ b/src/Storages/MergeTree/MergeTreeIndexGranularityConstant.cpp @@ -134,7 +134,7 @@ size_t MergeTreeIndexGranularityConstant::countRowsForRows(size_t from_mark, siz std::string MergeTreeIndexGranularityConstant::describe() const { return fmt::format( - "Constant(constant_granularity: {}, last_mark_granularity: {}, num_marks_without_final: {}, has_final_mark: {}", + "Constant(constant_granularity: {}, last_mark_granularity: {}, num_marks_without_final: {}, has_final_mark: {})", constant_granularity, last_mark_granularity, num_marks_without_final, has_final_mark); } diff --git a/tests/queries/0_stateless/03268_system_parts_index_granularity.reference b/tests/queries/0_stateless/03268_system_parts_index_granularity.reference index f301cd54ad2..5f1953d6e85 100644 --- a/tests/queries/0_stateless/03268_system_parts_index_granularity.reference +++ b/tests/queries/0_stateless/03268_system_parts_index_granularity.reference @@ -1 +1,2 @@ 88 88 +25 25 diff --git a/tests/queries/0_stateless/03268_system_parts_index_granularity.sql b/tests/queries/0_stateless/03268_system_parts_index_granularity.sql index 1bab7840856..3df9f6be028 100644 --- a/tests/queries/0_stateless/03268_system_parts_index_granularity.sql +++ b/tests/queries/0_stateless/03268_system_parts_index_granularity.sql @@ -8,8 +8,14 @@ CREATE TABLE t ( ENGINE MergeTree() ORDER by key SETTINGS index_granularity = 10, index_granularity_bytes = '1024K'; +ALTER TABLE t MODIFY SETTING enable_index_granularity_compression = 0; + INSERT INTO t SELECT number, toString(number) FROM numbers(100); -SELECT index_granularity_bytes_in_memory, index_granularity_bytes_in_memory_allocated FROM system.parts where table = 't' and database = currentDatabase(); +ALTER TABLE t MODIFY SETTING enable_index_granularity_compression = 1; + +INSERT INTO t SELECT number, toString(number) FROM numbers(100); + +SELECT index_granularity_bytes_in_memory, index_granularity_bytes_in_memory_allocated FROM system.parts where table = 't' and database = currentDatabase() ORDER BY name; DROP TABLE IF EXISTS t;