mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix SortingAggregatedTransform.
This commit is contained in:
parent
b75771be61
commit
2398dc954c
@ -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();
|
||||
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;
|
||||
|
||||
addChunk(std::move(chunk), input_num);
|
||||
all_finished = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (pushed_to_output)
|
||||
|
Loading…
Reference in New Issue
Block a user