dbms: improvement [#METR-2944].

This commit is contained in:
Alexey Milovidov 2015-11-30 23:20:37 +03:00
parent 48e840a199
commit a7387d9ce4

View File

@ -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);
}
}