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 PartialOrd for ArrayAgg
impl PartialOrd for ArrayAgg
impl Eq for ArrayAgg
impl StructuralPartialEq for ArrayAgg
Auto Trait Implementations§
impl Freeze for ArrayAgg
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