2020-11-25 18:32:52 +00:00
|
|
|
drop table if exists data_01593;
|
|
|
|
create table data_01593 (key Int) engine=MergeTree() order by key partition by key;
|
|
|
|
|
|
|
|
insert into data_01593 select * from numbers_mt(10);
|
2022-04-03 07:52:44 +00:00
|
|
|
insert into data_01593 select * from numbers_mt(10) settings max_partitions_per_insert_block=1; -- { serverError TOO_MANY_PARTS }
|
2023-08-07 21:28:19 +00:00
|
|
|
-- throw_on_max_partitions_per_insert_block=false means we'll just log that the limit was reached rather than throw
|
|
|
|
insert into data_01593 select * from numbers_mt(10) settings max_partitions_per_insert_block=1, throw_on_max_partitions_per_insert_block=false;
|
2020-11-25 18:32:52 +00:00
|
|
|
-- settings for INSERT is prefered
|
2022-04-03 07:52:44 +00:00
|
|
|
insert into data_01593 settings max_partitions_per_insert_block=100 select * from numbers_mt(10) settings max_partitions_per_insert_block=1;
|
2020-12-18 13:26:11 +00:00
|
|
|
|
|
|
|
drop table data_01593;
|