Found in stress test: https://gist.github.com/alesapin/5cd6b8901488a1f170d5ef389900a534
Report: https://s3.amazonaws.com/clickhouse-test-reports/31158/7fb9a42b119b6c3eba1784caaabde51c1ded3384/stress_tests__debug__actions_.html
addChunk(std::move(chunk), input_num);
        if (in->isFinished())
        {
            is_input_finished[input_num] = true;
        }
        else
        {
            
            need_data = true;
            all_finished = false;
        }
    }
    if (pushed_to_output)
        return Status::PortFull;
    if (tryPushChunk())
        return Status::PortFull;
    if (need_data)
        return Status::NeedData;
    if (!all_finished)
        throw Exception("SortingAggregatedTransform has read bucket, but couldn't push it.",
                  ErrorCodes::LOGICAL_ERROR);
    if (overflow_chunk)
    {
        output.push(std::move(overflow_chunk));
        return Status::PortFull;
    }
    output.finish();
    return Status::Finished;
}
void addMergingAggregatedMemoryEfficientTransform(