improved test to cover more cases

This commit is contained in:
Артем Стрельцов 2020-05-02 14:31:07 +03:00
parent 25d7f76e4f
commit a012c18240
2 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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';