mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Fixed test
This commit is contained in:
parent
0f19807b97
commit
4223553508
@ -1,5 +1,5 @@
|
|||||||
# Make sure that any kind of `VIEW` can be created with a `COMMENT` clause
|
-- Make sure that any kind of `VIEW` can be created with a `COMMENT` clause
|
||||||
# and value of that clause is visible as `comment` column of `system.tables` table.
|
-- and value of that clause is visible as `comment` column of `system.tables` table.
|
||||||
|
|
||||||
CREATE VIEW view_comment_test AS (SELECT 1) COMMENT 'simple view';
|
CREATE VIEW view_comment_test AS (SELECT 1) COMMENT 'simple view';
|
||||||
CREATE MATERIALIZED VIEW materialized_view_comment_test TO test1 (a UInt64) AS (SELECT 1) COMMENT 'materialized view';
|
CREATE MATERIALIZED VIEW materialized_view_comment_test TO test1 (a UInt64) AS (SELECT 1) COMMENT 'materialized view';
|
||||||
@ -7,4 +7,6 @@ CREATE MATERIALIZED VIEW materialized_view_comment_test TO test1 (a UInt64) AS (
|
|||||||
SET allow_experimental_live_view=1;
|
SET allow_experimental_live_view=1;
|
||||||
CREATE LIVE VIEW live_view_comment_test AS (SELECT 1) COMMENT 'live view';
|
CREATE LIVE VIEW live_view_comment_test AS (SELECT 1) COMMENT 'live view';
|
||||||
|
|
||||||
SELECT name, engine, comment FROM system.tables WHERE name LIKE '%view_comment_test' ORDER BY name;
|
SYSTEM FLUSH LOGS;
|
||||||
|
|
||||||
|
SELECT name, engine, comment FROM system.tables WHERE database == currentDatabase() ORDER BY name;
|
||||||
|
Loading…
Reference in New Issue
Block a user