2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: no-replicated-database, no-parallel, no-fasttest
|
|
|
|
|
2019-10-02 10:52:40 +00:00
|
|
|
SET allow_experimental_live_view = 1;
|
|
|
|
|
2020-02-11 18:05:08 +00:00
|
|
|
DROP TABLE IF EXISTS lv;
|
|
|
|
DROP TABLE IF EXISTS mt;
|
2019-10-02 10:52:40 +00:00
|
|
|
|
2020-02-11 18:05:08 +00:00
|
|
|
CREATE TABLE mt (a Int32) Engine=MergeTree order by tuple();
|
|
|
|
CREATE LIVE VIEW lv AS SELECT * FROM mt;
|
2019-10-02 10:52:40 +00:00
|
|
|
|
2020-02-11 18:05:08 +00:00
|
|
|
INSERT INTO mt VALUES (1),(2),(3);
|
2019-10-02 10:52:40 +00:00
|
|
|
|
2020-02-11 18:05:08 +00:00
|
|
|
SELECT *,_version FROM lv;
|
2019-10-02 10:52:40 +00:00
|
|
|
|
2020-02-11 18:05:08 +00:00
|
|
|
DROP TABLE lv;
|
|
|
|
DROP TABLE mt;
|