mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
fix
This commit is contained in:
parent
9539ef18d2
commit
55e06ea16b
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user