From 2d2518156b0deb9aca1042d45837dd5d89781ce4 Mon Sep 17 00:00:00 2001 From: xufei Date: Tue, 11 Apr 2023 15:40:29 +0800 Subject: [PATCH] Update dbms/src/Interpreters/Join.cpp Co-authored-by: SeaRise --- dbms/src/Interpreters/Join.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dbms/src/Interpreters/Join.cpp b/dbms/src/Interpreters/Join.cpp index 25870430663..c857ea02cf6 100644 --- a/dbms/src/Interpreters/Join.cpp +++ b/dbms/src/Interpreters/Join.cpp @@ -989,15 +989,7 @@ Block Join::joinBlockHash(ProbeProcessInfo & probe_process_info) const result_blocks.push_back(std::move(block)); } assert(!result_blocks.empty()); - if (result_blocks.size() == 1) - { - return result_blocks[0]; - } - else - { - return vstackBlocks(std::move(result_blocks)); - } -} + vstackBlocks(std::move(result_blocks)); namespace {