use of io.trino.metadata.ResolvedFunction in project trino by trinodb.
the class AbstractOperatorBenchmark method createAggregationFunction.
protected final BenchmarkAggregationFunction createAggregationFunction(String name, Type... argumentTypes) {
ResolvedFunction resolvedFunction = localQueryRunner.getMetadata().resolveFunction(session, QualifiedName.of(name), fromTypes(argumentTypes));
AggregationMetadata aggregationMetadata = localQueryRunner.getFunctionManager().getAggregateFunctionImplementation(resolvedFunction);
return new BenchmarkAggregationFunction(resolvedFunction, aggregationMetadata);
}
Aggregations