presto-main/src/main/java/io/prestosql/sql/planner/StatisticsAggregationPlanner.java/StatisticsAggregationPlanner/createAggregation
class StatisticsAggregationPlanner:    private ColumnStatisticsAggregation createAggregation(QualifiedName functionName, SymbolReference input, Type inputType, Type outputType)
    {
        ResolvedFunction resolvedFunction = metadata.resolveFunction(functionName, fromTypes(inputType));
        Type resolvedType = metadata.getType(getOnlyElement(resolvedFunction.getSignature().getArgumentTypes()));
        verify(resolvedType.equals(inputType), "resolved function input type does not match the input type: %s != %s", resolvedType, inputType);
        return new ColumnStatisticsAggregation(
                new AggregationNode.Aggregation(
                        resolvedFunction,
                        ImmutableList.of(input),
                        false,
                        Optional.empty(),
                        Optional.empty(),
                        Optional.empty()),
                outputType);
    }