We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d966984 commit 25b4f67Copy full SHA for 25b4f67
datafusion/expr/src/expr_fn.rs
@@ -248,6 +248,16 @@ pub fn scalar_subquery(subquery: Arc<LogicalPlan>) -> Expr {
248
Expr::ScalarSubquery(Subquery { subquery })
249
}
250
251
+/// Create an expression to represent the stddev() aggregate function
252
+pub fn stddev(expr: Expr) -> Expr {
253
+ Expr::AggregateFunction(AggregateFunction::new(
254
+ aggregate_function::AggregateFunction::Stddev,
255
+ vec![expr],
256
+ false,
257
+ None,
258
+ ))
259
+}
260
+
261
/// Create a grouping set
262
pub fn grouping_set(exprs: Vec<Vec<Expr>>) -> Expr {
263
Expr::GroupingSet(GroupingSet::GroupingSets(exprs))
0 commit comments