Build fix

This commit is contained in:
Alexander Gololobov 2024-05-23 18:41:14 +02:00
parent ddc24822e0
commit 2315991504

View File

@ -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);
} }
} }