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

Function avg

datafusion/expr/src/test/function_stub.rs:83–92  ·  view source on GitHub ↗
(expr: Expr)

Source from the content-addressed store, hash-verified

81create_func!(Avg, avg_udaf);
82
83pub fn avg(expr: Expr) -> Expr {
84 Expr::AggregateFunction(AggregateFunction::new_udf(
85 avg_udaf(),
86 vec![expr],
87 false,
88 None,
89 vec![],
90 None,
91 ))
92}
93
94/// Stub `sum` used for optimizer testing
95#[derive(Debug, PartialEq, Eq, Hash)]

Callers 1

describeMethod · 0.50

Calls 1

AggregateFunctionClass · 0.50

Tested by

no test coverage detected