1
create table main_table (number UInt64) engine = MergeTree order by tuple();
create materialized view mv_1 engine = MergeTree order by tuple() as
select number, toString(number) from main_table where number % 13 != 0;
create materialized view mv_2 engine = MergeTree order by tuple() as
select number, toString(number) from main_table where number % 13 != 1;
create materialized view mv_3 engine = MergeTree order by tuple() as
select number, toString(number) from main_table where number % 13 != 3;
create materialized view mv_4 engine = MergeTree order by tuple() as
select number, toString(number) from main_table where number % 13 != 4;
insert into main_table select number from numbers(10000000)
drop table if exists main_table;
drop table if exists mv_1;
drop table if exists mv_2;
drop table if exists mv_3;
drop table if exists mv_4;