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

Method accumulator

datafusion/functions-aggregate/src/stddev.rs:118–123  ·  view source on GitHub ↗
(&self, acc_args: AccumulatorArgs)

Source from the content-addressed store, hash-verified

116 }
117
118 fn accumulator(&self, acc_args: AccumulatorArgs) -> Result<Box<dyn Accumulator>> {
119 if acc_args.is_distinct {
120 return not_impl_err!("STDDEV_POP(DISTINCT) aggregations are not available");
121 }
122 Ok(Box::new(StddevAccumulator::try_new(StatsType::Sample)?))
123 }
124
125 fn aliases(&self) -> &[String] {
126 &self.alias

Callers 1

mergeFunction · 0.45

Calls 1

newFunction · 0.85

Tested by

no test coverage detected