added exception for not supporting selective load to Direct Dictionary

This commit is contained in:
Артем Стрельцов 2020-05-12 15:41:47 +03:00
parent 433cd6b993
commit c860f9f2db

View File

@ -28,6 +28,9 @@ DirectDictionary::DirectDictionary(
, source_ptr{std::move(source_ptr_)}
, saved_block{std::move(saved_block_)}
{
if (!this->source_ptr->supportsSelectiveLoad())
throw Exception{full_name + ": source cannot be used with DirectDictionary", ErrorCodes::UNSUPPORTED_METHOD};
createAttributes();
}