Merge pull request #8433 from ClickHouse/fix-sorting-aggregated-transform

Fix SortingAggregatedTransform.
This commit is contained in:
Nikolai Kochetov 2019-12-27 19:28:37 +03:00 committed by GitHub
commit 11ee56213d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -429,21 +429,30 @@ IProcessor::Status SortingAggregatedTransform::prepare()
continue;
}
all_finished = false;
//all_finished = false;
in->setNeeded();
if (!in->hasData())
{
need_data = true;
all_finished = false;
continue;
}
auto chunk = in->pull();
/// If chunk was pulled, then we need data from this port.
need_data = true;
addChunk(std::move(chunk), input_num);
if (in->isFinished())
{
is_input_finished[input_num] = true;
}
else
{
/// If chunk was pulled, then we need data from this port.
need_data = true;
all_finished = false;
}
}
if (pushed_to_output)