mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
fix system views test
This commit is contained in:
parent
af3a1c30f7
commit
ac0f606013
@ -1 +1,2 @@
|
||||
views_test_db views_test_view views_test_db views_test Materialized
|
||||
1
|
||||
0
|
||||
|
@ -1,10 +1,8 @@
|
||||
CREATE DATABASE IF NOT EXISTS views_test_db;
|
||||
DROP TABLE IF EXISTS views_test_db.views_test;
|
||||
CREATE TABLE views_test_db.views_test (a UInt8, s String) ENGINE = MergeTree() ORDER BY a;
|
||||
DROP TABLE IF EXISTS views_test_db.views_test_view;
|
||||
CREATE MATERIALIZED VIEW views_test_db.views_test_view ENGINE = ReplacingMergeTree() ORDER BY a AS SELECT * FROM views_test_db.views_test;
|
||||
SELECT * FROM system.views WHERE database = 'views_test_db' and name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test_db.views_test_view;
|
||||
SELECT * FROM system.views WHERE database = 'views_test_db' and name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test_db.views_test;
|
||||
DROP DATABASE IF EXISTS views_test_db;
|
||||
DROP TABLE IF EXISTS views_test;
|
||||
CREATE TABLE views_test (a UInt8, s String) ENGINE = MergeTree() ORDER BY a;
|
||||
DROP TABLE IF EXISTS views_test_view;
|
||||
CREATE MATERIALIZED VIEW views_test_view ENGINE = ReplacingMergeTree() ORDER BY a AS SELECT * FROM views_test;
|
||||
SELECT count(*) FROM system.views WHERE name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test_view;
|
||||
SELECT count(*) FROM system.views WHERE name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test;
|
Loading…
Reference in New Issue
Block a user