mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Try fix totals port for IAccumulatingTransform.
This commit is contained in:
parent
4f0bb6b91b
commit
7fb45461d1
@ -49,13 +49,15 @@ IAccumulatingTransform::Status IAccumulatingTransform::prepare()
|
||||
return Status::Finished;
|
||||
}
|
||||
|
||||
/// Close input if flag was set manually.
|
||||
if (input.isFinished())
|
||||
finished_input = true;
|
||||
|
||||
if (finished_input)
|
||||
{
|
||||
/// Close input if flag was set manually.
|
||||
input.close();
|
||||
|
||||
/// Read from totals port if has it.
|
||||
if (input.isFinished())
|
||||
{
|
||||
/// Read from totals port if has it.
|
||||
if (inputs.size() > 1)
|
||||
{
|
||||
auto & totals_input = inputs.back();
|
||||
@ -69,12 +71,8 @@ IAccumulatingTransform::Status IAccumulatingTransform::prepare()
|
||||
totals_input.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Generate output block.
|
||||
if (input.isFinished())
|
||||
{
|
||||
finished_input = true;
|
||||
/// Generate output block.
|
||||
return Status::Ready;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user