presto-main/src/main/java/io/prestosql/operator/GroupIdOperator.java/GroupIdOperator/needsInput
class GroupIdOperator:    @Override
    public boolean needsInput()
    {
        return !finishing && currentPage == null;
    }