From de6ef17d2782c2535b6ec40fe34d0bab1c414f8e Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 18 Jun 2020 22:42:28 +0300 Subject: [PATCH] Fix QueryPipeline::unitePipelines --- src/Processors/QueryPipeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Processors/QueryPipeline.cpp b/src/Processors/QueryPipeline.cpp index a4e4ab2595e..7ad7bddb104 100644 --- a/src/Processors/QueryPipeline.cpp +++ b/src/Processors/QueryPipeline.cpp @@ -643,6 +643,8 @@ void QueryPipeline::unitePipelines( else totals_having_port = uniteTotals(totals, current_header, processors); } + + current_header = common_header; } void QueryPipeline::setProgressCallback(const ProgressCallback & callback)