From 0490510b0b02bf3a41d652776e4ee9c67d6d47dd Mon Sep 17 00:00:00 2001 From: Vxider Date: Tue, 17 Dec 2019 16:18:17 +0800 Subject: [PATCH] resolve conflicts --- dbms/src/Interpreters/InterpreterInsertQuery.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dbms/src/Interpreters/InterpreterInsertQuery.cpp b/dbms/src/Interpreters/InterpreterInsertQuery.cpp index 8b30da0c149..a639b02fe2f 100644 --- a/dbms/src/Interpreters/InterpreterInsertQuery.cpp +++ b/dbms/src/Interpreters/InterpreterInsertQuery.cpp @@ -99,6 +99,7 @@ BlockIO InterpreterInsertQuery::execute() const auto & query = query_ptr->as(); checkAccess(query); + BlockIO res; StoragePtr table = getTable(query); auto table_lock = table->lockStructureForShare(true, context.getInitialQueryId()); @@ -176,9 +177,6 @@ BlockIO InterpreterInsertQuery::execute() res.in = std::make_shared(in_streams, out_streams); - res.in = std::make_shared(context, res.in, out->getHeader(), ConvertingBlockInputStream::MatchColumnsMode::Position); - res.in = std::make_shared(res.in, out); - if (!allow_materialized) { for (const auto & column : table->getColumns()) @@ -190,7 +188,7 @@ BlockIO InterpreterInsertQuery::execute() { res.out = std::move(out_streams.at(0)); res.in = std::make_shared(query_ptr, nullptr, query_sample_block, context, nullptr); - res.in = std::make_shared(res.in, out); + res.in = std::make_shared(res.in, res.out); } else res.out = std::move(out_streams.at(0));