Motivation
Aggregate functions are only defined as Expr methods. Using one of them currently requires wrapping the expression inside a Expr::expr(...) to get an Expr. For instance: Expr::expr(Expr::case(...)).sum().
Proposed Solutions
By adding aggregate functions to the ExprTrait trait, it would be possible to simply write Expr::case(...).sum(), which is much more idiomatic.
Motivation
Aggregate functions are only defined as
Exprmethods. Using one of them currently requires wrapping the expression inside aExpr::expr(...)to get anExpr. For instance:Expr::expr(Expr::case(...)).sum().Proposed Solutions
By adding aggregate functions to the
ExprTraittrait, it would be possible to simply writeExpr::case(...).sum(), which is much more idiomatic.