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<'de> Deserialize<'de> for ArrayAgg
impl<'de> Deserialize<'de> for ArrayAgg
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
source§impl Ord for ArrayAgg
impl Ord for ArrayAgg
source§impl PartialEq<ArrayAgg> for ArrayAgg
impl PartialEq<ArrayAgg> for ArrayAgg
source§impl PartialOrd<ArrayAgg> for ArrayAgg
impl PartialOrd<ArrayAgg> 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: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
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