From e8e5164d9d37e315e7ef635b78bdad6c29d85d75 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 25 Apr 2019 17:52:51 +0300 Subject: [PATCH] Don't use same headers for main and totals streams in QueryPipeline. --- dbms/src/Processors/QueryPipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Processors/QueryPipeline.cpp b/dbms/src/Processors/QueryPipeline.cpp index 0a9bf96a0ad..59c76833582 100644 --- a/dbms/src/Processors/QueryPipeline.cpp +++ b/dbms/src/Processors/QueryPipeline.cpp @@ -120,7 +120,7 @@ void QueryPipeline::addSimpleTransformImpl(const TProcessorGetter & getter) if (!stream) return; - auto transform = callProcessorGetter(current_header, getter, stream_type); + auto transform = callProcessorGetter(stream->getHeader(), getter, stream_type); if (transform) {