mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Build fix
This commit is contained in:
parent
ddc24822e0
commit
2315991504
@ -67,12 +67,11 @@ void MergeTreeDataPartWriterCompact::initDynamicStreamsIfNeeded(const Block & bl
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
is_dynamic_streams_initialized = true;
|
is_dynamic_streams_initialized = true;
|
||||||
auto storage_snapshot = std::make_shared<StorageSnapshot>(data_part->storage, metadata_snapshot);
|
|
||||||
for (const auto & column : columns_list)
|
for (const auto & column : columns_list)
|
||||||
{
|
{
|
||||||
if (column.type->hasDynamicSubcolumns())
|
if (column.type->hasDynamicSubcolumns())
|
||||||
{
|
{
|
||||||
auto compression = storage_snapshot->getCodecDescOrDefault(column.name, default_codec);
|
auto compression = getCodecDescOrDefault(column.name, default_codec);
|
||||||
addStreams(column, block.getByName(column.name).column, compression);
|
addStreams(column, block.getByName(column.name).column, compression);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user