<https://clickhouse-test-reports.s3.yandex.net/25969/86d31445fd0dd9bc086432f559d1089c3d4a7700/fuzzer_debug/report.html#fail1>
{
    InputPorts res;
    for (auto & header : headers)
        res.emplace_back(std::move(header));
    return res;
}
IProcessor::Status FinalizingViewsTransform::prepare()
{
    if (output.isFinished())
        throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot finalize views because output port is finished");
    if (!output.canPush())
        return Status::PortFull;
    size_t num_finished = 0;
    size_t pos = 0;
    for (auto & input : inputs)
    {
        auto i = pos;
        ++pos;
        if (input.isFinished())
        {
            ++num_finished;
            continue;
        }
        input.setNeeded();
        if (input.hasData())
        {