mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 17:20:50 +00:00
dbms: improvement [#METR-2944].
This commit is contained in:
parent
48e840a199
commit
a7387d9ce4
@ -151,11 +151,7 @@ static void appendBlock(const Block & from, Block & to)
|
||||
throw Exception("Cannot append block to another: different type of columns at index " + toString(column_no)
|
||||
+ ". Block 1: " + from.dumpStructure() + ". Block 2: " + to.dumpStructure(), ErrorCodes::BLOCKS_HAS_DIFFERENT_STRUCTURE);
|
||||
|
||||
if (col_to.empty())
|
||||
to.getByPosition(column_no).column = col_from.clone();
|
||||
else
|
||||
for (size_t row_no = 0; row_no < rows; ++row_no)
|
||||
col_to.insertFrom(col_from, row_no);
|
||||
col_to.insertRangeFrom(col_from, 0, rows);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user