create table views_max_insert_threads_null (a UInt64) Engine = Null
create materialized view views_max_insert_threads_mv Engine = Null AS select now() as ts, max(a) from views_max_insert_threads_null group by ts
insert into views_max_insert_threads_null select * from numbers_mt(3000000000) settings max_threads = 16, max_insert_threads=16
drop table if exists views_max_insert_threads_null
drop table if exists views_max_insert_threads_mv