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

Method with_aggregate_function

datafusion/sql/tests/common/mod.rs:84–94  ·  view source on GitHub ↗
(
        mut self,
        aggregate_function: Arc<AggregateUDF>,
    )

Source from the content-addressed store, hash-verified

82 }
83
84 pub fn with_aggregate_function(
85 mut self,
86 aggregate_function: Arc<AggregateUDF>,
87 ) -> Self {
88 // TODO: change to to_string() if all the function name is converted to lowercase
89 self.aggregate_functions.insert(
90 aggregate_function.name().to_string().to_lowercase(),
91 aggregate_function,
92 );
93 self
94 }
95
96 pub fn with_window_function(mut self, window_function: Arc<WindowUDF>) -> Self {
97 self.window_functions

Callers 7

mock_session_stateFunction · 0.45
roundtrip_exprFunction · 0.45
roundtrip_statementFunction · 0.45

Calls 3

insertMethod · 0.45
to_stringMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected