Enum datafusion_expr::expr::GroupingSet
source · [−]Expand description
Grouping sets See https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-GROUPING-SETS for Postgres definition. See https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-groupby.html for Apache Spark definition.
Variants
Rollup(Vec<Expr>)
Rollup grouping sets
Cube(Vec<Expr>)
Cube grouping sets
GroupingSets(Vec<Vec<Expr>>)
User-defined grouping sets
Implementations
sourceimpl GroupingSet
impl GroupingSet
sourcepub fn distinct_expr(&self) -> Vec<Expr>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn distinct_expr(&self) -> Vec<Expr>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Return all distinct exprs in the grouping set. For CUBE
and ROLLUP
this
is just the underlying list of exprs. For GROUPING SET
we need to deduplicate
the exprs in the underlying sets.
Trait Implementations
sourceimpl Clone for GroupingSet
impl Clone for GroupingSet
sourcefn clone(&self) -> GroupingSet
fn clone(&self) -> GroupingSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Hash for GroupingSet
impl Hash for GroupingSet
sourceimpl PartialEq<GroupingSet> for GroupingSet
impl PartialEq<GroupingSet> for GroupingSet
sourcefn eq(&self, other: &GroupingSet) -> bool
fn eq(&self, other: &GroupingSet) -> bool
impl Eq for GroupingSet
impl StructuralEq for GroupingSet
impl StructuralPartialEq for GroupingSet
Auto Trait Implementations
impl !RefUnwindSafe for GroupingSet
impl Send for GroupingSet
impl Sync for GroupingSet
impl Unpin for GroupingSet
impl !UnwindSafe for GroupingSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more