mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +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.
20 lines
590 B
Plaintext
20 lines
590 B
Plaintext
=DICTIONARY in Ordinary DB
|
|
CREATE DICTIONARY ordinary_db.dict1\n(\n `key_column` UInt64 DEFAULT 0, \n `second_column` UInt8 DEFAULT 1, \n `third_column` String DEFAULT \'qqq\'\n)\nPRIMARY KEY key_column\nSOURCE(CLICKHOUSE(HOST \'localhost\' PORT 9000 USER \'default\' TABLE \'table_for_dict\' PASSWORD \'\' DB \'database_for_dict\'))\nLIFETIME(MIN 1 MAX 10)\nLAYOUT(FLAT())
|
|
dict1
|
|
1
|
|
ordinary_db dict1
|
|
==DETACH DICTIONARY
|
|
0
|
|
==ATTACH DICTIONARY
|
|
dict1
|
|
1
|
|
ordinary_db dict1
|
|
==DROP DICTIONARY
|
|
0
|
|
=DICTIONARY in Memory DB
|
|
0
|
|
=DICTIONARY in Lazy DB
|
|
=DROP DATABASE WITH DICTIONARY
|
|
dict4
|
|
dict4
|