ClickHouse/tests/queries/0_stateless/01071_live_view_detach_dependency.sql

13 lines
332 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-replicated-database, no-parallel, no-fasttest
2020-01-24 20:14:42 +00:00
SET allow_experimental_live_view = 1;
DROP TABLE IF EXISTS test;
DROP TABLE IF EXISTS lv;
CREATE TABLE test (n Int8) ENGINE = Memory;
CREATE LIVE VIEW lv AS SELECT * FROM test;
DETACH TABLE lv;
INSERT INTO test VALUES (42);
DROP TABLE test;
2020-03-23 22:40:40 +00:00
ATTACH TABLE lv;
DROP TABLE lv;