Merge pull request #61218 from azat/tests/fix-01603_insert_select_too_many_parts

Fix 01603_insert_select_too_many_parts flakiness
This commit is contained in:
Alexey Milovidov 2024-03-13 11:53:35 +03:00 committed by GitHub
commit a73d8aac0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,8 @@ CREATE TABLE too_many_parts (x UInt64) ENGINE = MergeTree ORDER BY tuple() SETTI
SYSTEM STOP MERGES too_many_parts;
SET max_block_size = 1, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
-- Avoid concurrent parts check to avoid flakiness
SET max_threads=1, max_insert_threads=1;
-- exception is not thrown if threshold is exceeded when multi-block INSERT is already started.
INSERT INTO too_many_parts SELECT * FROM numbers(10);