Method
with_udaf
(mut self, udaf: Arc<AggregateUDF>)
Source from the content-addressed store, hash-verified
| 844 | |
| 845 | impl 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; |
Tested by
no test coverage detected