Add a test for #1148

This commit is contained in:
Alexey Milovidov 2020-11-02 21:52:04 +03:00
parent 70982fdc54
commit 3bc8ff6af6
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Hello\0World

View File

@ -0,0 +1,20 @@
DROP TABLE IF EXISTS src;
CREATE TABLE src (k UInt64, s FixedString(11)) ENGINE = Memory;
INSERT INTO src VALUES (1, 'Hello\0World');
DROP DICTIONARY IF EXISTS dict;
CREATE DICTIONARY dict
(
k UInt64,
s String
)
PRIMARY KEY k
SOURCE(CLICKHOUSE(HOST 'localhost' PORT 9000 USER default TABLE 'src'))
LAYOUT(FLAT)
LIFETIME(MIN 10 MAX 10);
SELECT dictGet(currentDatabase() || '.dict', 's', number) FROM numbers(2);
DROP TABLE src;
DROP DICTIONARY dict;