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
b57dff7157
commit
3c19cd729f
@ -1,8 +0,0 @@
|
||||
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 * FROM system.views WHERE database = 'default' and name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test_view;
|
||||
SELECT * FROM system.views WHERE database = 'default' and name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test;
|
8
tests/queries/0_stateless/02015_add_system_views.sql
Normal file
8
tests/queries/0_stateless/02015_add_system_views.sql
Normal file
@ -0,0 +1,8 @@
|
||||
DROP TABLE IF EXISTS default.views_test;
|
||||
CREATE TABLE default.views_test (a UInt8, s String) ENGINE = MergeTree() ORDER BY a;
|
||||
DROP TABLE IF EXISTS default.views_test_view;
|
||||
CREATE MATERIALIZED VIEW default.views_test_view ENGINE = ReplacingMergeTree() ORDER BY a AS SELECT * FROM default.views_test;
|
||||
SELECT * FROM system.views WHERE database = 'default' and name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS default.views_test_view;
|
||||
SELECT * FROM system.views WHERE database = 'default' and name = 'views_test_view';
|
||||
DROP TABLE IF EXISTS default.views_test;
|
Loading…
Reference in New Issue
Block a user