MCPcopy Create free account
hub / github.com/apache/datafusion / with_udaf

Method with_udaf

datafusion/optimizer/tests/optimizer_integration.rs:846–850  ·  view source on GitHub ↗
(mut self, udaf: Arc<AggregateUDF>)

Source from the content-addressed store, hash-verified

844
845impl MyContextProvider {
846 fn with_udaf(mut self, udaf: Arc<AggregateUDF>) -> Self {
847 // TODO: change to to_string() if all the function name is converted to lowercase
848 self.udafs.insert(udaf.name().to_lowercase(), udaf);
849 self
850 }
851
852 fn with_expr_planners(mut self, expr_planners: Vec<Arc<dyn ExprPlanner>>) -> Self {
853 self.expr_planners = expr_planners;

Callers 1

test_sqlFunction · 0.45

Calls 2

insertMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected