From dbbe761fa10d088eb73c962e727b88f1006ace3a Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 16 Dec 2020 13:23:11 +0300 Subject: [PATCH] Fix test --- tests/queries/0_stateless/01603_remove_column_ttl.reference | 2 +- tests/queries/0_stateless/01603_remove_column_ttl.sql | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/queries/0_stateless/01603_remove_column_ttl.reference b/tests/queries/0_stateless/01603_remove_column_ttl.reference index 998ccf27c5f..bb0d0b8aafe 100644 --- a/tests/queries/0_stateless/01603_remove_column_ttl.reference +++ b/tests/queries/0_stateless/01603_remove_column_ttl.reference @@ -1,6 +1,6 @@ 1 32 2 0 -CREATE TABLE default.table_with_column_ttl\n(\n `EventTime` DateTime,\n `UserID` UInt64,\n `Age` UInt8\n)\nENGINE = MergeTree\nORDER BY tuple()\nSETTINGS index_granularity = 8192 +CREATE TABLE default.table_with_column_ttl\n(\n `EventTime` DateTime,\n `UserID` UInt64,\n `Age` UInt8\n)\nENGINE = MergeTree\nORDER BY tuple()\nSETTINGS min_bytes_for_wide_part = 0, index_granularity = 8192 1 32 2 0 3 27 diff --git a/tests/queries/0_stateless/01603_remove_column_ttl.sql b/tests/queries/0_stateless/01603_remove_column_ttl.sql index 1eb958ea50f..556d968d270 100644 --- a/tests/queries/0_stateless/01603_remove_column_ttl.sql +++ b/tests/queries/0_stateless/01603_remove_column_ttl.sql @@ -6,7 +6,8 @@ CREATE TABLE table_with_column_ttl Age UInt8 TTL EventTime + INTERVAL 3 MONTH ) ENGINE MergeTree() -ORDER BY tuple(); +ORDER BY tuple() +SETTINGS min_bytes_for_wide_part = 0; -- column TTL doesn't work for compact parts INSERT INTO table_with_column_ttl VALUES (now(), 1, 32);