presto-main/src/main/java/io/prestosql/metadata/SqlAggregationFunction.java/SqlAggregationFunction/SqlAggregationFunction
class SqlAggregationFunction:    protected SqlAggregationFunction(FunctionMetadata functionMetadata, boolean decomposable, boolean orderSensitive)
    {
        this.functionMetadata = requireNonNull(functionMetadata, "functionMetadata is null");
        checkArgument(functionMetadata.isDeterministic(), "Aggregation function must be deterministic");
        this.orderSensitive = orderSensitive;
        this.decomposable = decomposable;
    }