mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Merge pull request #8433 from ClickHouse/fix-sorting-aggregated-transform
Fix SortingAggregatedTransform.
This commit is contained in:
commit
11ee56213d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user