ClickHouse/tests/queries/0_stateless/00753_comment_columns_zookeeper.reference
Azat Khuzhin 824255f603 Update tests for multiline SHOW CREATE
The following has been used for this:

    git grep '^CREATE' tests/queries/**.reference | cut -d: -f1 | sort -u | xargs -n1 -i sh -c 'show-create-rewrite.py < {} | sponge {}'

show-create-rewrite.py is available here:

    https://gist.github.com/azat/916b98b5ddf9573f7dc9a4dce33b59b5

And for 00998_constraints_all_tables test FORMAT TSVRaw I simply drop.
2020-04-08 20:54:22 +03:00

7 lines
756 B
Plaintext

CREATE TABLE test.check_comments\n(\n `column_name1` UInt8 DEFAULT 1 COMMENT \'comment\', \n `column_name2` UInt8 COMMENT \'non default comment\'\n)\nENGINE = ReplicatedMergeTree(\'clickhouse/tables/test_comments\', \'r1\')\nORDER BY column_name1\nSETTINGS index_granularity = 8192
column_name1 UInt8 DEFAULT 1 comment
column_name2 UInt8 non default comment
CREATE TABLE test.check_comments\n(\n `column_name1` UInt8 DEFAULT 1 COMMENT \'another comment\', \n `column_name2` UInt8 COMMENT \'non default comment\'\n)\nENGINE = ReplicatedMergeTree(\'clickhouse/tables/test_comments\', \'r1\')\nORDER BY column_name1\nSETTINGS index_granularity = 8192
column_name1 UInt8 DEFAULT 1 another comment
column_name2 UInt8 non default comment