2020-01-21 11:56:46 +00:00
|
|
|
drop table if exists mt_compact;
|
2020-03-20 12:25:24 +00:00
|
|
|
drop table if exists mt_compact_2;
|
2020-01-21 11:56:46 +00:00
|
|
|
|
|
|
|
create table mt_compact (a Int, s String) engine = MergeTree order by a partition by a
|
|
|
|
settings index_granularity_bytes = 0;
|
|
|
|
alter table mt_compact modify setting min_rows_for_wide_part = 1000; -- { serverError 48 }
|
2020-02-14 21:33:02 +00:00
|
|
|
show create table mt_compact;
|
2020-01-21 11:56:46 +00:00
|
|
|
|
|
|
|
create table mt_compact_2 (a Int, s String) engine = MergeTree order by a partition by a
|
|
|
|
settings min_rows_for_wide_part = 1000;
|
|
|
|
insert into mt_compact_2 values (1, 'a');
|
|
|
|
alter table mt_compact attach partition 1 from mt_compact_2; -- { serverError 36 }
|
2020-02-14 21:33:02 +00:00
|
|
|
|
|
|
|
drop table mt_compact;
|
2020-03-20 12:25:24 +00:00
|
|
|
drop table mt_compact_2;
|
2020-02-14 21:33:02 +00:00
|
|
|
|
|
|
|
set send_logs_level = 'error';
|
|
|
|
create table mt_compact (a Int, s String) engine = MergeTree order by a partition by a
|
|
|
|
settings index_granularity_bytes = 0, min_rows_for_wide_part = 1000;
|
|
|
|
|
|
|
|
-- Check that alter of other settings works
|
|
|
|
alter table mt_compact modify setting parts_to_delay_insert = 300;
|
|
|
|
alter table mt_compact modify setting min_rows_for_wide_part = 0;
|
|
|
|
|
|
|
|
show create table mt_compact;
|
|
|
|
|
|
|
|
drop table mt_compact
|