presto-main/src/main/java/io/prestosql/sql/planner/plan/AggregationNode.java/AggregationNode/hasDefaultOutput
class AggregationNode:    public boolean hasDefaultOutput()
    {
        return hasEmptyGroupingSet() && (step.isOutputPartial() || step.equals(SINGLE));
    }