mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
improved test to cover more cases
This commit is contained in:
parent
25d7f76e4f
commit
a012c18240
@ -4,4 +4,19 @@ INITIALIZING DICTIONARY
|
||||
0
|
||||
1
|
||||
0
|
||||
2
|
||||
0
|
||||
London
|
||||
Great Britain
|
||||
|
||||
0 Great Britain
|
||||
1 Moscow
|
||||
2 Russia
|
||||
3 London
|
||||
4 Center
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
END
|
@ -67,6 +67,15 @@ SELECT dictHas('ordinary_db.dict2', toUInt64(3));
|
||||
SELECT dictHas('ordinary_db.dict2', toUInt64(45));
|
||||
SELECT dictIsIn('ordinary_db.dict2', toUInt64(3), toUInt64(1));
|
||||
SELECT dictIsIn('ordinary_db.dict2', toUInt64(1), toUInt64(3));
|
||||
SELECT dictGetUInt64('ordinary_db.dict2', 'parent_region', toUInt64(3));
|
||||
SELECT dictGetUInt64('ordinary_db.dict2', 'parent_region', toUInt64(99));
|
||||
SELECT dictGetString('ordinary_db.dict2', 'region_name', toUInt64(5));
|
||||
SELECT dictGetString('ordinary_db.dict2', 'region_name', toUInt64(4));
|
||||
SELECT dictGetString('ordinary_db.dict2', 'region_name', toUInt64(100));
|
||||
|
||||
SELECT number, dictGetString('ordinary_db.dict2', 'region_name', number) chars FROM numbers(10);
|
||||
|
||||
|
||||
SELECT dictGetUInt64('ordinary_db.dict1', 'second_column', toUInt64(100500)); -- { serverError 396 }
|
||||
|
||||
SELECT 'END';
|
||||
|
Loading…
Reference in New Issue
Block a user