mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
Add check for empty proccessors in AggregatingTransform::expandPipeline
This commit is contained in:
parent
c5e0869c46
commit
e0acb6e337
@ -501,6 +501,8 @@ void AggregatingTransform::work()
|
||||
|
||||
Processors AggregatingTransform::expandPipeline()
|
||||
{
|
||||
if (processors.empty())
|
||||
throw Exception("Can not expandPipeline in AggregatingTransform. This is a bug.", ErrorCodes::LOGICAL_ERROR);
|
||||
auto & out = processors.back()->getOutputs().front();
|
||||
inputs.emplace_back(out.getHeader(), this);
|
||||
connect(out, inputs.back());
|
||||
|
Loading…
Reference in New Issue
Block a user