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