mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Added test
This commit is contained in:
parent
1fa57c96b2
commit
44ff739854
@ -0,0 +1 @@
|
||||
Value
|
@ -0,0 +1,22 @@
|
||||
DROP TABLE IF EXISTS 02125_test_table;
|
||||
CREATE TABLE 02125_test_table
|
||||
(
|
||||
id UInt64,
|
||||
value Nullable(String)
|
||||
)
|
||||
ENGINE=TinyLog;
|
||||
|
||||
INSERT INTO 02125_test_table VALUES (0, 'Value');
|
||||
|
||||
DROP DICTIONARY IF EXISTS 02125_test_dictionary;
|
||||
CREATE DICTIONARY 02125_test_dictionary
|
||||
(
|
||||
id UInt64,
|
||||
value Nullable(String)
|
||||
)
|
||||
PRIMARY KEY id
|
||||
SOURCE(CLICKHOUSE(TABLE '02125_test_table'))
|
||||
LAYOUT(DIRECT());
|
||||
|
||||
SELECT dictGet('02125_test_dictionary', 'value', toUInt64(0));
|
||||
SELECT dictGetString('02125_test_dictionary', 'value', toUInt64(0)); --{serverError 53}
|
Loading…
Reference in New Issue
Block a user