Try fix aggregating.

This commit is contained in:
Nikolai Kochetov 2020-04-04 18:28:11 +03:00
parent 9fac9a7d38
commit 36604e93ce

View File

@ -186,9 +186,10 @@ void AggregatingSortedTransform::merge()
{ {
/// Write the simple aggregation result for the previous group. /// Write the simple aggregation result for the previous group.
if (merged_data.mergedRows() > 0) if (merged_data.mergedRows() > 0)
{
insertSimpleAggregationResult(); insertSimpleAggregationResult();
merged_data.insertRow(); merged_data.insertRow();
}
/// if there are enough rows accumulated and the last one is calculated completely /// if there are enough rows accumulated and the last one is calculated completely
if (merged_data.hasEnoughRows()) if (merged_data.hasEnoughRows())