create table data (key Int) engine=MergeTree() order by key;

insert into data values (1);

set param_part='all_1_1_0';
alter table data detach part {part:String};
alter table data attach part {part:String};
set param_part='all_2_2_0';
alter table data detach part {part:String};
alter table data drop detached part {part:String} settings allow_drop_detached=1;

insert into data values (2);
set param_part='all_3_3_0';
alter table data drop part {part:String};
