2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: no-parallel
|
|
|
|
|
2021-01-20 05:27:42 +00:00
|
|
|
DROP DATABASE IF EXISTS dictdb_01045;
|
2019-12-10 17:27:29 +00:00
|
|
|
|
2021-01-20 05:27:42 +00:00
|
|
|
CREATE DATABASE dictdb_01045;
|
2019-12-10 17:27:29 +00:00
|
|
|
|
2021-01-20 05:27:42 +00:00
|
|
|
CREATE DICTIONARY dictdb_01045.restricted_dict (
|
2019-12-10 17:27:29 +00:00
|
|
|
key UInt64,
|
|
|
|
value String
|
|
|
|
)
|
|
|
|
PRIMARY KEY key
|
|
|
|
SOURCE(EXECUTABLE(COMMAND 'echo -E "1\thello"' FORMAT TabSeparated))
|
|
|
|
LIFETIME(MIN 0 MAX 1)
|
|
|
|
LAYOUT(CACHE(SIZE_IN_CELLS 10));
|
|
|
|
|
|
|
|
-- because of lazy load we can check only in dictGet query
|
2021-01-20 05:27:42 +00:00
|
|
|
select dictGetString('dictdb_01045.restricted_dict', 'value', toUInt64(1)); -- {serverError 482}
|
2019-12-10 17:27:29 +00:00
|
|
|
|
|
|
|
select 'Ok.';
|
|
|
|
|
2021-01-20 05:27:42 +00:00
|
|
|
DROP DICTIONARY IF EXISTS dictdb_01045.restricted_dict;
|
2019-12-10 17:27:29 +00:00
|
|
|
|
2021-01-20 05:27:42 +00:00
|
|
|
DROP DATABASE IF EXISTS dictdb_01045;
|