dbms: fixed error [#METR-14653].

This commit is contained in:
Alexey Milovidov 2015-01-19 20:50:55 +03:00
parent c52d6b0ce8
commit 1e32c8664f
3 changed files with 7 additions and 1 deletions

View File

@ -1530,7 +1530,6 @@ void Aggregator::mergeStream(BlockInputStreamPtr stream, AggregatedDataVariants
else if (result.type == AggregatedDataVariants::Type::NAME) \
mergeStreamsImpl(block, result, result.aggregates_pool, *result.NAME, result.NAME->data);
if (false) {}
APPLY_FOR_AGGREGATED_VARIANTS(M)
#undef M
else if (result.type != AggregatedDataVariants::Type::without_key)

View File

@ -0,0 +1,3 @@
1 2
0 2

View File

@ -0,0 +1,4 @@
SET totals_mode = 'after_having_auto';
SET max_rows_to_group_by = 100000;
SET group_by_overflow_mode = 'any';
SELECT dummy + 1 AS k, count() FROM remote('127.0.0.{1,2}', system, one) GROUP BY k WITH TOTALS ORDER BY k;