presto-main/src/main/java/io/prestosql/operator/AggregationOperator.java/AggregationOperator/finish
class AggregationOperator:    @Override
    public void finish()
    {
        if (state == State.NEEDS_INPUT) {
            state = State.HAS_OUTPUT;
        }
    }