pub struct AggExpr {
pub func: AggFunc,
pub arg: Option<ExprId>,
pub percentile: Option<ExprId>,
pub alias: String,
pub out_var: Option<VarId>,
}Expand description
An aggregation expression inside an AGGREGATE operator.
Fields§
§func: AggFuncThe aggregation function.
arg: Option<ExprId>The argument expression (None for COUNT(*)).
percentile: Option<ExprId>The percentile argument for percentileDisc(expr, percentile) /
percentileCont(expr, percentile).
alias: StringOutput column name.
out_var: Option<VarId>When this aggregate is computed as a sub-expression of a larger RETURN
item (count(*) + 1), the synthetic variable bound to its output column
so a following Project can reference it. None for a terminal
top-level aggregate (no Project follows). (#599 nested aggregates.)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AggExpr
impl<'de> Deserialize<'de> for AggExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AggExpr
Auto Trait Implementations§
impl Freeze for AggExpr
impl RefUnwindSafe for AggExpr
impl Send for AggExpr
impl Sync for AggExpr
impl Unpin for AggExpr
impl UnsafeUnpin for AggExpr
impl UnwindSafe for AggExpr
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more