Update DictionarySourceFactory.cpp

This commit is contained in:
alexey-milovidov 2018-09-13 21:58:12 +03:00 committed by GitHub
parent 99560e06f8
commit b824652992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ Block createSampleBlock(const DictionaryStructure & dict_struct)
}
if (dict_struct.range_min)
{
for (const auto & attribute : { dict_struct.range_min, dict_struct.range_max })
{
const auto & type = std::make_shared<DataTypeNullable>(attribute->type);
@ -73,6 +74,7 @@ Block createSampleBlock(const DictionaryStructure & dict_struct)
block.insert(ColumnWithTypeAndName{std::move(column), type, attribute->name});
}
}
for (const auto & attribute : dict_struct.attributes)
{