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

Method with_udaf

datafusion/sql/examples/sql.rs:76–79  ·  view source on GitHub ↗
(mut self, udaf: Arc<AggregateUDF>)

Source from the content-addressed store, hash-verified

74
75impl MyContextProvider {
76 fn with_udaf(mut self, udaf: Arc<AggregateUDF>) -> Self {
77 self.udafs.insert(udaf.name().to_string(), udaf);
78 self
79 }
80
81 fn with_expr_planner(mut self, planner: Arc<dyn ExprPlanner>) -> Self {
82 self.expr_planners.push(planner);

Callers 1

mainFunction · 0.45

Calls 3

insertMethod · 0.45
to_stringMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected