И
И что-то никак не получается ALTER MODIFY QUERY заставить работать:
drop database if exists test;
create database test;
use test;
create table null(v UInt64) ENGINE = Null;
create table dest(v UInt64) Engine = Memory;
create materialized view pipe TO dest AS select v FROM null;
alter table pipe modify query select v * 2 as v FROM test.null;
Code: 48, e.displayText() = DB::Exception: Alter of type 'MODIFY QUERY' is not supported by storage MaterializedView (version 20.3.8.53 (official build))
Как его правильно готовить?
1) если есть возможность выключить insert в source
2) alter table target
3) drop MV
4) create MV to target select ... from source (с новым ddl)
5) если не было возможности выключить insert в исходную таблицу - insert to target from source where <diff condition>