Merge pull request #16550 from ClickHouse/remove_wrong_assertion

Remove wrong assertion from SSDComplexKeyCacheDictionary
This commit is contained in:
alesapin 2020-10-30 22:45:48 +03:00 committed by GitHub
commit 94ae5aed73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1467,7 +1467,6 @@ void SSDComplexKeyCacheDictionary::getItemsNumberImpl(
{ {
assert(dict_struct.key); assert(dict_struct.key);
assert(key_columns.size() == key_types.size()); assert(key_columns.size() == key_types.size());
assert(key_columns.size() == dict_struct.key->size());
dict_struct.validateKeyTypes(key_types); dict_struct.validateKeyTypes(key_types);

View File

@ -62,6 +62,8 @@ SELECT dictGetUInt64('database_for_dict.ssd_dict', 'a', tuple('10', toInt32(-20)
SELECT dictGetInt32('database_for_dict.ssd_dict', 'b', tuple('10', toInt32(-20))); SELECT dictGetInt32('database_for_dict.ssd_dict', 'b', tuple('10', toInt32(-20)));
SELECT dictGetString('database_for_dict.ssd_dict', 'c', tuple('10', toInt32(-20))); SELECT dictGetString('database_for_dict.ssd_dict', 'c', tuple('10', toInt32(-20)));
SELECT dictGetUInt64('database_for_dict.ssd_dict', 'a', tuple(toInt32(3))); --{serverError 53}
DROP DICTIONARY database_for_dict.ssd_dict; DROP DICTIONARY database_for_dict.ssd_dict;
DROP TABLE IF EXISTS database_for_dict.keys_table; DROP TABLE IF EXISTS database_for_dict.keys_table;