some tests delete empty parts instantly

This commit is contained in:
Sema Checherinda 2023-01-16 16:01:01 +01:00
parent 95045c6738
commit 9c76161c06
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
DROP TABLE IF EXISTS mt_01451;
CREATE TABLE mt_01451 (v UInt8) ENGINE = MergeTree() order by tuple();
CREATE TABLE mt_01451 (v UInt8) ENGINE = MergeTree() order by tuple() SETTINGS old_parts_lifetime=0;
SYSTEM STOP MERGES mt_01451;
INSERT INTO mt_01451 VALUES (0);

View File

@ -15,6 +15,7 @@ ${CLICKHOUSE_CLIENT} -q '
)
ENGINE = MergeTree
ORDER BY key
SETTINGS old_parts_lifetime=0
'
${CLICKHOUSE_CLIENT} -q 'INSERT INTO table_with_single_pk SELECT number, toString(number % 10) FROM numbers(1000000)'