ClickHouse/tests/queries/0_stateless/00940_max_parts_in_total.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
374 B
MySQL
Raw Normal View History

drop table if exists max_parts_in_total;
create table max_parts_in_total (x UInt64) ENGINE = MergeTree PARTITION BY x ORDER BY x SETTINGS max_parts_in_total = 10;
2024-07-28 18:56:51 +00:00
SET max_insert_threads = 1;
INSERT INTO max_parts_in_total SELECT number FROM numbers(10);
SELECT 1;
INSERT INTO max_parts_in_total SELECT 123; -- { serverError TOO_MANY_PARTS }
drop table max_parts_in_total;