From af0328bf3059ac514c8619cc038b860ed214c050 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 15 May 2020 13:17:07 +0300 Subject: [PATCH] Fix log tables. --- src/Interpreters/MetricLog.cpp | 2 ++ src/Interpreters/QueryThreadLog.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Interpreters/MetricLog.cpp b/src/Interpreters/MetricLog.cpp index bd898170705..96fe55c26e6 100644 --- a/src/Interpreters/MetricLog.cpp +++ b/src/Interpreters/MetricLog.cpp @@ -50,6 +50,8 @@ void MetricLogElement::appendToBlock(Block & block) const for (size_t i = 0, end = CurrentMetrics::end(); i < end; ++i) columns[column_idx++]->insert(current_metrics[i]); + + block.setColumns(std::move(columns)); } diff --git a/src/Interpreters/QueryThreadLog.cpp b/src/Interpreters/QueryThreadLog.cpp index 1a2975bd43b..f539a720449 100644 --- a/src/Interpreters/QueryThreadLog.cpp +++ b/src/Interpreters/QueryThreadLog.cpp @@ -107,6 +107,8 @@ void QueryThreadLogElement::appendToBlock(Block & block) const columns[i++]->insertDefault(); columns[i++]->insertDefault(); } + + block.setColumns(std::move(columns)); } }