2021-12-14 11:57:13 +00:00
|
|
|
-- 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.
|
2021-11-03 20:52:32 +00:00
|
|
|
|
|
|
|
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';
|
|
|
|
|
|
|
|
SET allow_experimental_live_view=1;
|
|
|
|
CREATE LIVE VIEW live_view_comment_test AS (SELECT 1) COMMENT 'live view';
|
|
|
|
|
2021-12-14 11:57:13 +00:00
|
|
|
SYSTEM FLUSH LOGS;
|
|
|
|
|
|
|
|
SELECT name, engine, comment FROM system.tables WHERE database == currentDatabase() ORDER BY name;
|