From e7ab4df1485e69b47e4e548f56a9f35a46781a07 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 2 Jul 2020 18:00:37 +0300 Subject: [PATCH] Fix result_rows and result_bytes metrics for selects. --- src/Processors/Formats/IOutputFormat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Processors/Formats/IOutputFormat.h b/src/Processors/Formats/IOutputFormat.h index 5b8f664aa23..ae5e4d72d3c 100644 --- a/src/Processors/Formats/IOutputFormat.h +++ b/src/Processors/Formats/IOutputFormat.h @@ -81,7 +81,7 @@ public: void setExtremes(const Block & extremes) { consumeExtremes(Chunk(extremes.getColumns(), extremes.rows())); } size_t getResultRows() const { return result_rows; } - size_t getResultBytes() const { return result_rows; } + size_t getResultBytes() const { return result_bytes; } private: /// Counters for consumed chunks. Are used for QueryLog.