fix for empty chunks

This commit is contained in:
Anton Popov 2021-10-22 21:48:03 +03:00
parent 7c458fbc4c
commit 74cf57b4b0

View File

@ -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");