fix build

This commit is contained in:
Nikolai Kochetov 2018-03-19 21:43:26 +03:00
parent da968db041
commit 2fbe3d3749
2 changed files with 3 additions and 3 deletions

View File

@ -83,9 +83,9 @@ MutableColumnPtr wrapInNullable(MutableColumnPtr && src, Block & block, const Co
return makeNullable(std::move(src_not_nullable)); return makeNullable(std::move(src_not_nullable));
if (src_not_nullable->isColumnConst()) if (src_not_nullable->isColumnConst())
return ColumnNullable::create(src_not_nullable->convertToFullColumnIfConst(), result_null_map_column); return ColumnNullable::create(src_not_nullable->convertToFullColumnIfConst(), std::move(result_null_map_column));
else else
return ColumnNullable::create(src_not_nullable, result_null_map_column); return ColumnNullable::create(src_not_nullable, std::move(result_null_map_column));
} }

View File

@ -164,7 +164,7 @@ static void appendBlock(const Block & from, Block & to)
for (size_t column_no = 0, columns = to.columns(); column_no < columns; ++column_no) for (size_t column_no = 0, columns = to.columns(); column_no < columns; ++column_no)
{ {
const IColumn & col_from = *from.getByPosition(column_no).column.get(); const IColumn & col_from = *from.getByPosition(column_no).column.get();
MutableColumnPtr col_to = to.getByPosition(column_no).column->mutate(); MutableColumnPtr col_to = (*std::move(to.getByPosition(column_no).column)).mutate();
col_to->insertRangeFrom(col_from, 0, rows); col_to->insertRangeFrom(col_from, 0, rows);