mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Added a test
This commit is contained in:
parent
8a31d998fd
commit
ae8655f217
@ -0,0 +1,2 @@
|
||||
100
|
||||
200
|
@ -0,0 +1,14 @@
|
||||
DROP TABLE IF EXISTS test.partitions;
|
||||
CREATE TABLE test.partitions (x UInt64) ENGINE = MergeTree ORDER BY x PARTITION BY x;
|
||||
|
||||
INSERT INTO test.partitions SELECT * FROM system.numbers LIMIT 100;
|
||||
SELECT count() FROM system.parts WHERE database = 'test' AND table = 'partitions';
|
||||
INSERT INTO test.partitions SELECT * FROM system.numbers LIMIT 100;
|
||||
SELECT count() FROM system.parts WHERE database = 'test' AND table = 'partitions';
|
||||
|
||||
SET max_partitions_per_insert_block = 1;
|
||||
|
||||
INSERT INTO test.partitions SELECT * FROM system.numbers LIMIT 1;
|
||||
INSERT INTO test.partitions SELECT * FROM system.numbers LIMIT 2; -- { serverError 252 }
|
||||
|
||||
DROP TABLE test.partitions;
|
Loading…
Reference in New Issue
Block a user