diff --git a/dbms/src/Functions/IFunction.cpp b/dbms/src/Functions/IFunction.cpp index ab11a89d6b8..c074b3ee73d 100644 --- a/dbms/src/Functions/IFunction.cpp +++ b/dbms/src/Functions/IFunction.cpp @@ -83,9 +83,9 @@ MutableColumnPtr wrapInNullable(MutableColumnPtr && src, Block & block, const Co return makeNullable(std::move(src_not_nullable)); 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 - return ColumnNullable::create(src_not_nullable, result_null_map_column); + return ColumnNullable::create(src_not_nullable, std::move(result_null_map_column)); } diff --git a/dbms/src/Storages/StorageBuffer.cpp b/dbms/src/Storages/StorageBuffer.cpp index 5c59ffa7c40..5769e5708cc 100644 --- a/dbms/src/Storages/StorageBuffer.cpp +++ b/dbms/src/Storages/StorageBuffer.cpp @@ -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) { 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);