This commit is contained in:
Yatsishin Ilya 2021-08-04 13:06:01 +03:00
parent 9539ef18d2
commit 55e06ea16b
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ IMergeTreeReader::IMergeTreeReader(
columns_from_part.set_empty_key(StringRef());
for (const auto & column_from_part : part_columns)
columns_from_part.emplace(column_from_part.name, &column_from_part.type);
columns_from_part[column_from_part.name] = &column_from_part.type;
}
IMergeTreeReader::~IMergeTreeReader() = default;

View File

@ -331,7 +331,7 @@ Block StorageInMemoryMetadata::getSampleBlockForColumns(
/// Virtual columns must be appended after ordinary, because user can
/// override them.
for (const auto & column : virtuals)
virtuals_map.emplace(column.name, &column.type);
virtuals_map[column.name] = &column.type;
for (const auto & name : column_names)
{