mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Merge pull request #16614 from ClickHouse/dict-fixedstring
Add a test for #1148
This commit is contained in:
commit
3e647062ef
@ -0,0 +1,2 @@
|
||||
|
||||
Hello\0World
|
20
tests/queries/0_stateless/01552_dict_fixedstring.sql
Normal file
20
tests/queries/0_stateless/01552_dict_fixedstring.sql
Normal 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;
|
@ -157,3 +157,4 @@
|
||||
01530_drop_database_atomic_sync
|
||||
01547_query_log_current_database
|
||||
01548_query_log_query_execution_ms
|
||||
01552_dict_fixedstring
|
||||
|
Loading…
Reference in New Issue
Block a user