mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
add test
This commit is contained in:
parent
6f12348282
commit
6d7b073036
@ -0,0 +1,4 @@
|
|||||||
|
CREATE TABLE `02111_modify_table_comment`.t\n(\n `n` Int8\n)\nENGINE = MergeTree\nORDER BY n\nSETTINGS index_granularity = 8192\nCOMMENT \'this is a MergeTree table\'
|
||||||
|
CREATE TABLE `02111_modify_table_comment`.t\n(\n `n` Int8\n)\nENGINE = MergeTree\nORDER BY n\nSETTINGS index_granularity = 8192\nCOMMENT \'MergeTree Table\'
|
||||||
|
CREATE TABLE `02111_modify_table_comment`.t_merge\n(\n `n` Int8\n)\nENGINE = Merge(\'02111_modify_table_comment\', \'t\')\nCOMMENT \'this is a Merge table\'
|
||||||
|
CREATE TABLE `02111_modify_table_comment`.t_merge\n(\n `n` Int8\n)\nENGINE = Merge(\'02111_modify_table_comment\', \'t\')\nCOMMENT \'Merge Table\'
|
32
tests/queries/0_stateless/02111_modify_table_comment.sql
Normal file
32
tests/queries/0_stateless/02111_modify_table_comment.sql
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
DROP DATABASE IF EXISTS 02111_modify_table_comment;
|
||||||
|
CREATE DATABASE 02111_modify_table_comment;
|
||||||
|
|
||||||
|
USE 02111_modify_table_comment;
|
||||||
|
|
||||||
|
CREATE TABLE t
|
||||||
|
(
|
||||||
|
`n` Int8
|
||||||
|
)
|
||||||
|
ENGINE = MergeTree
|
||||||
|
ORDER BY n
|
||||||
|
COMMENT 'this is a MergeTree table';
|
||||||
|
|
||||||
|
SHOW CREATE t;
|
||||||
|
|
||||||
|
ALTER TABLE t
|
||||||
|
MODIFY COMMENT 'MergeTree Table';
|
||||||
|
|
||||||
|
SHOW CREATE t;
|
||||||
|
|
||||||
|
CREATE TABLE t_merge AS t
|
||||||
|
ENGINE = Merge('02111_modify_table_comment', 't')
|
||||||
|
COMMENT 'this is a Merge table';
|
||||||
|
|
||||||
|
SHOW CREATE t_merge;
|
||||||
|
|
||||||
|
ALTER TABLE t_merge
|
||||||
|
MODIFY COMMENT 'Merge Table';
|
||||||
|
|
||||||
|
SHOW CREATE t_merge;
|
||||||
|
|
||||||
|
DROP DATABASE 02111_modify_table_comment;
|
Loading…
Reference in New Issue
Block a user