Try fix aggregating.

This commit is contained in:
Nikolai Kochetov 2020-04-04 18:46:44 +03:00
parent 12a12eb3b8
commit 5bbfa40910

View File

@ -189,12 +189,14 @@ void AggregatingSortedTransform::merge()
{
insertSimpleAggregationResult();
merged_data.insertRow();
last_key.reset();
}
/// if there are enough rows accumulated and the last one is calculated completely
if (merged_data.hasEnoughRows())
{
last_key.reset();
return;
}
/// We will write the data for the group. We copy the values of ordinary columns.
merged_data.initializeRow(current->all_columns, current->pos,