mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
update system views test
This commit is contained in:
parent
5976869451
commit
306da6f414
@ -24,7 +24,7 @@ NamesAndTypesList StorageSystemViews::getNamesAndTypes()
|
||||
{"name", std::make_shared<DataTypeString>()},
|
||||
{"table", std::make_shared<DataTypeString>()},
|
||||
{"table_database", std::make_shared<DataTypeString>()},
|
||||
{"view_type", std::move(view_type_datatype)},
|
||||
{"type", std::move(view_type_datatype)},
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
default views_test default views_test_view Materialized
|
||||
default views_test_view default views_test Materialized
|
||||
|
@ -2,7 +2,7 @@ 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 view_table = 'views_test_view';
|
||||
SELECT * FROM system.views WHERE database = 'default' and view_table = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test_view;
|
||||
SELECT * FROM system.views WHERE view_table = 'views_test_view';
|
||||
SELECT * FROM system.views WHERE database = 'default' and view_table = 'views_test_view';
|
||||
DROP TABLE IF EXISTS views_test;
|
||||
|
Loading…
Reference in New Issue
Block a user