2020-04-09 23:25:52 +00:00
|
|
|
DROP DATABASE IF EXISTS dict_db_01225;
|
|
|
|
CREATE DATABASE dict_db_01225;
|
|
|
|
|
|
|
|
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
|
2020-12-04 02:15:44 +00:00
|
|
|
SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'dict_data' PASSWORD '' DB 'dict_db_01225'))
|
2020-04-09 23:25:52 +00:00
|
|
|
LIFETIME(MIN 0 MAX 0)
|
|
|
|
LAYOUT(FLAT());
|
|
|
|
|
|
|
|
SYSTEM RELOAD DICTIONARY dict_db_01225.dict;
|
2020-04-12 20:50:32 +00:00
|
|
|
|
|
|
|
DROP TABLE dict_db_01225.dict; -- { serverError 520; }
|
2020-04-09 23:25:52 +00:00
|
|
|
DROP DICTIONARY dict_db_01225.dict;
|
2020-04-12 20:50:32 +00:00
|
|
|
|
2020-04-09 23:25:52 +00:00
|
|
|
DROP DATABASE dict_db_01225;
|