mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Fix LIVE VIEW tests
This commit is contained in:
parent
d52f9d9785
commit
32ad64ae01
@ -14,3 +14,4 @@ SELECT sleep(2);
|
||||
SHOW TABLES WHERE database=currentDatabase() and name LIKE 'lv';
|
||||
|
||||
DROP TABLE mt;
|
||||
DROP TABLE lv;
|
||||
|
@ -17,3 +17,4 @@ SELECT * FROM lv;
|
||||
DROP TABLE visits;
|
||||
DROP TABLE visits_layer;
|
||||
|
||||
DROP TABLE lv;
|
||||
|
@ -4,12 +4,12 @@ DROP TABLE IF EXISTS lv;
|
||||
DROP TABLE IF EXISTS visits;
|
||||
DROP TABLE IF EXISTS visits_layer;
|
||||
|
||||
CREATE TABLE visits(StartDate Date) ENGINE MergeTree ORDER BY(StartDate);
|
||||
CREATE TABLE visits_layer(StartDate Date) ENGINE Distributed(test_cluster_two_shards_localhost, currentDatabase(), 'visits', rand());
|
||||
CREATE TABLE visits (StartDate Date) ENGINE MergeTree ORDER BY(StartDate);
|
||||
CREATE TABLE visits_layer (StartDate Date) ENGINE Distributed(test_cluster_two_shards_localhost, currentDatabase(), 'visits', rand());
|
||||
|
||||
CREATE LIVE VIEW lv AS SELECT * FROM visits_layer ORDER BY StartDate;
|
||||
|
||||
CREATE TABLE visits_layer_lv(StartDate Date) ENGINE Distributed(test_cluster_two_shards_localhost, currentDatabase(), 'lv', rand());
|
||||
CREATE TABLE visits_layer_lv (StartDate Date) ENGINE Distributed(test_cluster_two_shards_localhost, currentDatabase(), 'lv', rand());
|
||||
|
||||
INSERT INTO visits_layer (StartDate) VALUES ('2020-01-01');
|
||||
INSERT INTO visits_layer (StartDate) VALUES ('2020-01-02');
|
||||
@ -19,3 +19,4 @@ SELECT * FROM visits_layer_lv;
|
||||
DROP TABLE visits;
|
||||
DROP TABLE visits_layer;
|
||||
|
||||
DROP TABLE lv;
|
||||
|
@ -17,3 +17,4 @@ SELECT * FROM lv;
|
||||
DROP TABLE visits;
|
||||
DROP TABLE visits_layer;
|
||||
|
||||
DROP TABLE lv;
|
||||
|
Loading…
Reference in New Issue
Block a user