#27685
{
        input.setNeeded();
        if (!input.hasData())
            return Status::NeedData;
        chunk = input.pull(true);
        return Status::Ready;
    }
    if (inputs.size() > 1)
    {
        auto & totals_input = inputs.back();
        if (!totals_input.isFinished())
        {
            totals_input.setNeeded();
            if (!totals_input.hasData())
                return Status::NeedData;
            chunk = totals_input.pull(true);
            for_totals = true;
            return Status::Ready;
        }
    }
    else if (!set_totals)
    {
        chunk.setColumns(inputs.front().getHeader().cloneEmpty().getColumns(), 0);
        for_totals = true;
        return Status::Ready;
    }
    output.finish();
    return Status::Finished;
}
void FillingRightJoinSideTransform::work()