presto-main/src/main/java/io/prestosql/sql/planner/plan/AggregationNode.java/Step/partialOutput
class Step:        public static Step partialOutput(Step step)
        {
            if (step.isInputRaw()) {
                return Step.PARTIAL;
            }
            return Step.INTERMEDIATE;
        }