pub struct ArrayAgg {
pub distinct: bool,
pub expr: Box<Expr>,
pub order_by: Option<Vec<OrderByExpr>>,
pub limit: Option<Box<Expr>>,
pub within_group: bool,
}
Expand description
An ARRAY_AGG
invocation ARRAY_AGG( [ DISTINCT ] <expr> [ORDER BY <expr>] [LIMIT <n>] )
Or ARRAY_AGG( [ DISTINCT ] <expr> ) [ WITHIN GROUP ( ORDER BY <expr> ) ]
ORDER BY position is defined differently for BigQuery, Postgres and Snowflake.
Fields§
§distinct: bool
§expr: Box<Expr>
§order_by: Option<Vec<OrderByExpr>>
§limit: Option<Box<Expr>>
§within_group: bool
Trait Implementations§
source§impl Ord for ArrayAgg
impl Ord for ArrayAgg
source§impl PartialEq for ArrayAgg
impl PartialEq for ArrayAgg
source§impl PartialOrd for ArrayAgg
impl PartialOrd for ArrayAgg
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl VisitMut for ArrayAgg
impl VisitMut for ArrayAgg
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Eq for ArrayAgg
impl StructuralEq for ArrayAgg
impl StructuralPartialEq for ArrayAgg
Auto Trait Implementations§
impl RefUnwindSafe for ArrayAgg
impl Send for ArrayAgg
impl Sync for ArrayAgg
impl Unpin for ArrayAgg
impl UnwindSafe for ArrayAgg
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.