mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added a test
This commit is contained in:
parent
fbaf6b9a4b
commit
28e0e64638
@ -0,0 +1,2 @@
|
||||
1000 499500
|
||||
1000 499500
|
@ -0,0 +1,19 @@
|
||||
DROP TABLE IF EXISTS mt;
|
||||
|
||||
CREATE TABLE mt (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS max_part_loading_threads = 16, parts_to_delay_insert = 100000, parts_to_throw_insert = 100000;
|
||||
|
||||
SYSTEM STOP MERGES;
|
||||
|
||||
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;
|
||||
|
||||
SYSTEM START MERGES;
|
||||
DROP TABLE mt;
|
Loading…
Reference in New Issue
Block a user