2021-11-26 14:49:31 +00:00
|
|
|
-- Tags: zookeeper
|
|
|
|
|
|
|
|
create table rmt1 (d DateTime, n int) engine=ReplicatedMergeTree('/test/01165/{database}/rmt', '1') order by n partition by toYYYYMMDD(d);
|
|
|
|
create table rmt2 (d DateTime, n int) engine=ReplicatedMergeTree('/test/01165/{database}/rmt', '2') order by n partition by toYYYYMMDD(d);
|
|
|
|
|
|
|
|
system stop replicated sends rmt1;
|
|
|
|
insert into rmt1 values (now(), arrayJoin([1, 2])); -- { clientError 36 }
|
2023-03-13 09:33:35 +00:00
|
|
|
insert into rmt1(n) select * from system.numbers limit arrayJoin([1, 2]); -- { serverError 36, 440 }
|
2021-11-26 14:49:31 +00:00
|
|
|
insert into rmt1 values (now(), rand());
|
|
|
|
drop table rmt1;
|
|
|
|
|
|
|
|
system sync replica rmt2;
|
|
|
|
drop table rmt2;
|
|
|
|
|
|
|
|
|
|
|
|
create table rmt1 (d DateTime, n int) engine=ReplicatedMergeTree('/test/01165/{database}/rmt', '1') order by n partition by tuple();
|
|
|
|
create table rmt2 (d DateTime, n int) engine=ReplicatedMergeTree('/test/01165/{database}/rmt', '2') order by n partition by tuple();
|
|
|
|
|
|
|
|
system stop replicated sends rmt1;
|
|
|
|
insert into rmt1 values (now(), rand());
|
|
|
|
drop table rmt1;
|
|
|
|
|
|
|
|
system sync replica rmt2;
|
|
|
|
drop table rmt2;
|
|
|
|
|
|
|
|
|
|
|
|
create table rmt1 (n UInt8, m Int32, d Date, t DateTime) engine=ReplicatedMergeTree('/test/01165/{database}/rmt', '1') order by n partition by (n, m, d, t);
|
|
|
|
create table rmt2 (n UInt8, m Int32, d Date, t DateTime) engine=ReplicatedMergeTree('/test/01165/{database}/rmt', '2') order by n partition by (n, m, d, t);
|
|
|
|
|
|
|
|
system stop replicated sends rmt1;
|
|
|
|
insert into rmt1 values (rand(), rand(), now(), now());
|
|
|
|
insert into rmt1 values (rand(), rand(), now(), now());
|
|
|
|
insert into rmt1 values (rand(), rand(), now(), now());
|
|
|
|
drop table rmt1;
|
|
|
|
|
|
|
|
system sync replica rmt2;
|
|
|
|
drop table rmt2;
|