2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: no-parallel
|
|
|
|
|
2019-08-11 20:04:14 +00:00
|
|
|
DROP TABLE IF EXISTS mt;
|
|
|
|
|
2023-06-06 12:42:56 +00:00
|
|
|
CREATE TABLE mt (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS parts_to_delay_insert = 100000, parts_to_throw_insert = 100000;
|
2019-08-11 20:04:14 +00:00
|
|
|
|
2020-07-15 11:47:51 +00:00
|
|
|
SYSTEM STOP MERGES mt;
|
2019-08-11 20:04:14 +00:00
|
|
|
|
|
|
|
SET max_block_size = 1, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
|
|
|
|
INSERT INTO mt SELECT * FROM numbers(1000);
|
|
|
|
SET max_block_size = 65536;
|
|
|
|
|
|
|
|
SELECT count(), sum(x) FROM mt;
|
|
|
|
|
|
|
|
DETACH TABLE mt;
|
|
|
|
ATTACH TABLE mt;
|
|
|
|
|
|
|
|
SELECT count(), sum(x) FROM mt;
|
|
|
|
|
2020-07-15 11:47:51 +00:00
|
|
|
SYSTEM START MERGES mt;
|
2019-08-11 20:04:14 +00:00
|
|
|
DROP TABLE mt;
|