mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Update DictionarySourceFactory.cpp
This commit is contained in:
parent
99560e06f8
commit
b824652992
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user