mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Better semantic of sharing columns: development [#CLICKHOUSE-2].
This commit is contained in:
parent
62f7c25522
commit
5f4a536f75
@ -88,10 +88,9 @@ Block ColumnGathererStream::readImpl()
|
||||
if (!source_to_fully_copy && row_sources_buf.eof())
|
||||
return Block();
|
||||
|
||||
MutableColumns output_columns(1);
|
||||
output_columns[0] = column.column->cloneEmpty();
|
||||
output_columns[0]->gather(*this);
|
||||
return output_block.cloneWithColumns(std::move(output_columns));
|
||||
MutableColumnPtr output_column = column.column->cloneEmpty();
|
||||
output_column->gather(*this);
|
||||
return { ColumnWithTypeAndName(std::move(output_column), column.type, column.name) };
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user