mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Cover SHOW CREATE TABLE from database with Dictionary ENGINE
This commit is contained in:
parent
888baad565
commit
e0c972448e
@ -0,0 +1,6 @@
|
||||
CREATE TABLE dict_db_01225_dictionary.`dict_db_01225.dict`
|
||||
(
|
||||
`key` UInt64,
|
||||
`val` UInt64
|
||||
)
|
||||
ENGINE = Dictionary(`dict_db_01225.dict`)
|
@ -0,0 +1,21 @@
|
||||
DROP DATABASE IF EXISTS dict_db_01225;
|
||||
DROP DATABASE IF EXISTS dict_db_01225_dictionary;
|
||||
CREATE DATABASE dict_db_01225;
|
||||
CREATE DATABASE dict_db_01225_dictionary Engine=Dictionary;
|
||||
|
||||
CREATE TABLE dict_db_01225.dict_data (key UInt64, val UInt64) Engine=Memory();
|
||||
CREATE DICTIONARY dict_db_01225.dict
|
||||
(
|
||||
key UInt64 DEFAULT 0,
|
||||
val UInt64 DEFAULT 10
|
||||
)
|
||||
PRIMARY KEY key
|
||||
SOURCE(CLICKHOUSE(HOST 'localhost' PORT 9000 USER 'default' TABLE 'dict_data' PASSWORD '' DB 'dict_db_01225'))
|
||||
LIFETIME(MIN 0 MAX 0)
|
||||
LAYOUT(FLAT());
|
||||
|
||||
SHOW CREATE TABLE dict_db_01225_dictionary.`dict_db_01225.dict` FORMAT TSVRaw;
|
||||
SHOW CREATE TABLE dict_db_01225_dictionary.`dict_db_01225.no_such_dict`; -- { serverError 36; }
|
||||
|
||||
DROP DATABASE dict_db_01225;
|
||||
DROP DATABASE dict_db_01225_dictionary;
|
Loading…
Reference in New Issue
Block a user