mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Fix DelayedSource.
This commit is contained in:
parent
b419d73880
commit
563fe4ea35
@ -38,25 +38,25 @@ IProcessor::Status DelayedSource::prepare()
|
||||
|
||||
/// Process ports in order: main, totals, extremes
|
||||
auto output = outputs.begin();
|
||||
for (auto & input : inputs)
|
||||
for (auto input = inputs.begin(); input != inputs.end(); ++input, ++output)
|
||||
{
|
||||
if (output->isFinished())
|
||||
{
|
||||
input.close();
|
||||
input->close();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!output->isNeeded())
|
||||
return Status::PortFull;
|
||||
|
||||
if (input.isFinished())
|
||||
if (input->isFinished())
|
||||
{
|
||||
output->finish();
|
||||
continue;
|
||||
}
|
||||
|
||||
input.setNeeded();
|
||||
if (!input.hasData())
|
||||
input->setNeeded();
|
||||
if (!input->hasData())
|
||||
return Status::PortFull;
|
||||
|
||||
output->pushData(input.pullData(true));
|
||||
|
Loading…
Reference in New Issue
Block a user