mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
fix for empty chunks
This commit is contained in:
parent
7c458fbc4c
commit
74cf57b4b0
@ -63,6 +63,9 @@ void FinishAggregatingInOrderAlgorithm::initialize(Inputs inputs)
|
||||
|
||||
void FinishAggregatingInOrderAlgorithm::consume(Input & input, size_t source_num)
|
||||
{
|
||||
if (!input.chunk.hasRows())
|
||||
return;
|
||||
|
||||
const auto & info = input.chunk.getChunkInfo();
|
||||
if (!info)
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Chunk info was not set for chunk in FinishAggregatingInOrderAlgorithm");
|
||||
|
Loading…
Reference in New Issue
Block a user