From fa1f069793adc0d85b0630c1622476275f165f4b Mon Sep 17 00:00:00 2001 From: terrylin Date: Sun, 1 Aug 2021 00:16:00 +0800 Subject: [PATCH] modify test cases --- .../0_stateless/01378_alter_rename_with_ttl_zookeeper.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/queries/0_stateless/01378_alter_rename_with_ttl_zookeeper.sql b/tests/queries/0_stateless/01378_alter_rename_with_ttl_zookeeper.sql index 3c1a1c6fe44..686c0181175 100644 --- a/tests/queries/0_stateless/01378_alter_rename_with_ttl_zookeeper.sql +++ b/tests/queries/0_stateless/01378_alter_rename_with_ttl_zookeeper.sql @@ -10,7 +10,8 @@ CREATE TABLE table_rename_with_ttl ) ENGINE = ReplicatedMergeTree('/clickhouse/test/table_rename_with_ttl_01378', '1') ORDER BY tuple() -SETTINGS merge_with_ttl_timeout=0,max_number_of_merges_with_ttl_in_pool=0; +SETTINGS merge_with_ttl_timeout=0; +SYSTEM STOP TTL MERGES table_rename_with_ttl; INSERT INTO table_rename_with_ttl SELECT toDate('2018-10-01') + number % 3, toString(number) from numbers(9); @@ -26,7 +27,7 @@ ALTER TABLE table_rename_with_ttl materialize TTL; SELECT count() FROM table_rename_with_ttl; -ALTER TABLE table_rename_with_ttl MODIFY setting max_number_of_merges_with_ttl_in_pool = 1; +SYSTEM START TTL MERGES table_rename_with_ttl; optimize table table_rename_with_ttl; SELECT count() FROM table_rename_with_ttl;