From 1c4b47fea2d03d6a4c0fd0725df00938f4c62afb Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 3 Nov 2013 06:39:13 +0000 Subject: [PATCH] dbms: SplittingAggregator: fixed error [#METR-2944]. --- dbms/src/Interpreters/SplittingAggregator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbms/src/Interpreters/SplittingAggregator.cpp b/dbms/src/Interpreters/SplittingAggregator.cpp index 6abf0263788..aec42a9a6c1 100644 --- a/dbms/src/Interpreters/SplittingAggregator.cpp +++ b/dbms/src/Interpreters/SplittingAggregator.cpp @@ -140,6 +140,9 @@ void SplittingAggregator::execute(BlockInputStreamPtr stream, ManyAggregatedData void SplittingAggregator::convertToBlocks(ManyAggregatedDataVariants & data_variants, Blocks & blocks) { + if (data_variants.empty()) + return; + blocks.resize(data_variants.size()); Exceptions exceptions(threads);