mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
add test 03248_max_parts_to_move
This commit is contained in:
parent
6310d38bf6
commit
368b45670b
23
tests/queries/0_stateless/03248_max_parts_to_move.sql
Normal file
23
tests/queries/0_stateless/03248_max_parts_to_move.sql
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
DROP TABLE IF EXISTS t;
|
||||||
|
DROP TABLE IF EXISTS t2;
|
||||||
|
|
||||||
|
CREATE TABLE t (x Int32) ENGINE = MergeTree ORDER BY x;
|
||||||
|
CREATE TABLE t2 (x Int32) ENGINE = MergeTree ORDER BY x;
|
||||||
|
|
||||||
|
SYSTEM STOP MERGES t;
|
||||||
|
|
||||||
|
SET max_insert_block_size = 1;
|
||||||
|
SET min_insert_block_size_rows = 1;
|
||||||
|
SET max_block_size = 1;
|
||||||
|
|
||||||
|
SET max_parts_to_move = 5;
|
||||||
|
INSERT INTO t SELECT number from numbers(10);
|
||||||
|
|
||||||
|
ALTER TABLE t MOVE PARTITION tuple() TO TABLE t2; -- { serverError TOO_MANY_PARTS }
|
||||||
|
|
||||||
|
SET max_parts_to_move = 15;
|
||||||
|
|
||||||
|
ALTER TABLE t MOVE PARTITION tuple() TO TABLE t2;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS t;
|
||||||
|
DROP TABLE IF EXISTS t2;
|
Loading…
Reference in New Issue
Block a user