mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Added tests for CREATE [MATERIALIZED|LIVE] VIEW ... COMMENT ''
This commit is contained in:
parent
67852e9134
commit
6532ede2f6
@ -0,0 +1,3 @@
|
||||
live_view_comment_test LiveView live view
|
||||
materialized_view_comment_test MaterializedView materialized view
|
||||
view_comment_test View simple view
|
10
tests/queries/0_stateless/02048_views_with_comment.sql
Normal file
10
tests/queries/0_stateless/02048_views_with_comment.sql
Normal file
@ -0,0 +1,10 @@
|
||||
# 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.
|
||||
|
||||
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';
|
||||
|
||||
SELECT name, engine, comment FROM system.tables WHERE name LIKE '%view_comment_test' ORDER BY name;
|
Loading…
Reference in New Issue
Block a user