ClickHouse/tests/queries/0_stateless/00180_attach_materialized_view.sql
Alexander Tokmakov 20e6593f96 disable by default
2020-04-12 21:52:59 +03:00

13 lines
362 B
SQL

DROP TABLE IF EXISTS t_00180;
DROP TABLE IF EXISTS mv_00180;
DROP TABLE IF EXISTS `.inner.mv_00180`;
CREATE TABLE t_00180 (x UInt8) ENGINE = Null;
CREATE MATERIALIZED VIEW mv_00180 ENGINE = Null AS SELECT * FROM t_00180;
DETACH TABLE mv_00180;
ATTACH MATERIALIZED VIEW mv_00180 ENGINE = Null AS SELECT * FROM t_00180;
DROP TABLE t_00180;
DROP TABLE mv_00180;