mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
824255f603
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.
39 lines
4.7 KiB
Plaintext
39 lines
4.7 KiB
Plaintext
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 DEFAULT 1 COMMENT \'comment 1\', \n `second_column` UInt8 MATERIALIZED first_column COMMENT \'comment 2\', \n `third_column` UInt8 ALIAS second_column COMMENT \'comment 3\', \n `fourth_column` UInt8 COMMENT \'comment 4\', \n `fifth_column` UInt8\n)\nENGINE = TinyLog
|
|
first_column UInt8 DEFAULT 1 comment 1
|
|
second_column UInt8 MATERIALIZED first_column comment 2
|
|
third_column UInt8 ALIAS second_column comment 3
|
|
fourth_column UInt8 comment 4
|
|
fifth_column UInt8
|
|
┌─table──────────────────────┬─name──────────┬─comment───┐
|
|
│ check_query_comment_column │ first_column │ comment 1 │
|
|
│ check_query_comment_column │ second_column │ comment 2 │
|
|
│ check_query_comment_column │ third_column │ comment 3 │
|
|
│ check_query_comment_column │ fourth_column │ comment 4 │
|
|
│ check_query_comment_column │ fifth_column │ │
|
|
└────────────────────────────┴───────────────┴───────────┘
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 DEFAULT 1 COMMENT \'comment 1_1\', \n `second_column` UInt8 MATERIALIZED first_column COMMENT \'comment 2_1\', \n `third_column` UInt8 ALIAS second_column COMMENT \'comment 3_1\', \n `fourth_column` UInt8 COMMENT \'comment 4_1\', \n `fifth_column` UInt8 COMMENT \'comment 5_1\'\n)\nENGINE = TinyLog
|
|
┌─table──────────────────────┬─name──────────┬─comment─────┐
|
|
│ check_query_comment_column │ first_column │ comment 1_2 │
|
|
│ check_query_comment_column │ second_column │ comment 2_2 │
|
|
│ check_query_comment_column │ third_column │ comment 3_2 │
|
|
│ check_query_comment_column │ fourth_column │ comment 4_2 │
|
|
│ check_query_comment_column │ fifth_column │ comment 5_2 │
|
|
└────────────────────────────┴───────────────┴─────────────┘
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 DEFAULT 1 COMMENT \'comment 1_2\', \n `second_column` UInt8 MATERIALIZED first_column COMMENT \'comment 2_2\', \n `third_column` UInt8 ALIAS second_column COMMENT \'comment 3_2\', \n `fourth_column` UInt8 COMMENT \'comment 4_2\', \n `fifth_column` UInt8 COMMENT \'comment 5_2\'\n)\nENGINE = TinyLog
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 COMMENT \'comment 1\', \n `second_column` UInt8 COMMENT \'comment 2\', \n `third_column` UInt8 COMMENT \'comment 3\'\n)\nENGINE = MergeTree()\nPARTITION BY second_column\nORDER BY first_column\nSAMPLE BY first_column\nSETTINGS index_granularity = 8192
|
|
first_column UInt8 comment 1
|
|
second_column UInt8 comment 2
|
|
third_column UInt8 comment 3
|
|
┌─table──────────────────────┬─name──────────┬─comment───┐
|
|
│ check_query_comment_column │ first_column │ comment 1 │
|
|
│ check_query_comment_column │ second_column │ comment 2 │
|
|
│ check_query_comment_column │ third_column │ comment 3 │
|
|
└────────────────────────────┴───────────────┴───────────┘
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 COMMENT \'comment 1_2\', \n `second_column` UInt8 COMMENT \'comment 2_2\', \n `third_column` UInt8 COMMENT \'comment 3_2\'\n)\nENGINE = MergeTree()\nPARTITION BY second_column\nORDER BY first_column\nSAMPLE BY first_column\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 COMMENT \'comment 1_3\', \n `second_column` UInt8 COMMENT \'comment 2_3\', \n `third_column` UInt8 COMMENT \'comment 3_3\'\n)\nENGINE = MergeTree()\nPARTITION BY second_column\nORDER BY first_column\nSAMPLE BY first_column\nSETTINGS index_granularity = 8192
|
|
┌─table──────────────────────┬─name──────────┬─comment─────┐
|
|
│ check_query_comment_column │ first_column │ comment 1_3 │
|
|
│ check_query_comment_column │ second_column │ comment 2_3 │
|
|
│ check_query_comment_column │ third_column │ comment 3_3 │
|
|
└────────────────────────────┴───────────────┴─────────────┘
|