pub struct AggExpr {
pub func: SmolStr,
pub args: Vec<Expr>,
pub distinct: bool,
}Expand description
An aggregation call in an AGGREGATE operator.
The function name is resolved at this level (cf. Expr::Call which
carries the resolved function name as well). The aggregate = true flag
in the function catalog entry gates whether a call may appear here.
Spec §12.1, §8.3.
Fields§
§func: SmolStrResolved aggregation function name (e.g. "count", "sum").
args: Vec<Expr>Argument expressions.
distinct: booltrue when DISTINCT modifier is present (count(DISTINCT x)).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AggExpr
impl<'de> Deserialize<'de> for AggExpr
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AggExpr
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.