pub struct ArrayAgg {
pub distinct: bool,
pub expr: Box<Expr>,
pub order_by: Option<Box<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<Box<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 more