fix nested

This commit is contained in:
Anton Popov 2021-11-01 16:52:13 +03:00
parent 8fe3de16c6
commit a2b98f253e

View File

@ -43,14 +43,6 @@ IMergeTreeReader::IMergeTreeReader(
, serializations(data_part_->getSerializations())
, alter_conversions(storage.getAlterConversionsForPart(data_part))
{
if (isWidePart(data_part))
{
/// For wide parts convert plain arrays of Nested to subcolumns
/// to allow to use shared offset column from cache.
columns = Nested::convertToSubcolumns(columns);
part_columns = Nested::collect(part_columns);
}
for (const auto & column_from_part : part_columns)
columns_from_part[column_from_part.name] = &column_from_part.type;
}