pub enum GroupByWithModifier {
Rollup,
Cube,
Totals,
GroupingSets(Expr),
}Expand description
ClickHouse supports GROUP BY WITH modifiers(includes ROLLUP|CUBE|TOTALS). e.g. GROUP BY year WITH ROLLUP WITH TOTALS
Modifiers used with GROUP BY such as WITH ROLLUP or WITH CUBE.
Variants§
Rollup
WITH ROLLUP modifier.
Cube
WITH CUBE modifier.
Totals
WITH TOTALS modifier (ClickHouse).
GroupingSets(Expr)
Hive supports GROUPING SETS syntax, e.g. GROUP BY GROUPING SETS(...).
Trait Implementations§
Source§impl Clone for GroupByWithModifier
impl Clone for GroupByWithModifier
Source§fn clone(&self) -> GroupByWithModifier
fn clone(&self) -> GroupByWithModifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Source§impl Debug for GroupByWithModifier
impl Debug for GroupByWithModifier
Source§impl<'de> Deserialize<'de> for GroupByWithModifier
impl<'de> Deserialize<'de> for GroupByWithModifier
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>,
where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GroupByWithModifier
impl Display for GroupByWithModifier
Source§impl Hash for GroupByWithModifier
impl Hash for GroupByWithModifier
Source§impl Ord for GroupByWithModifier
impl Ord for GroupByWithModifier
Source§fn cmp(&self, other: &GroupByWithModifier) -> Ordering
fn cmp(&self, other: &GroupByWithModifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
where Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GroupByWithModifier
impl PartialEq for GroupByWithModifier
Source§impl PartialOrd for GroupByWithModifier
impl PartialOrd for GroupByWithModifier
Source§fn partial_cmp(&self, other: &GroupByWithModifier) -> Option<Ordering>
fn partial_cmp(&self, other: &GroupByWithModifier) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the
<= operator. Read more
Source§impl Serialize for GroupByWithModifier
impl Serialize for GroupByWithModifier
Source§impl Visit for GroupByWithModifier
impl Visit for GroupByWithModifier
Source§impl VisitMut for GroupByWithModifier
impl VisitMut for GroupByWithModifier
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided VisitorMut. Read more
impl Eq for GroupByWithModifier
impl StructuralPartialEq for GroupByWithModifier
Auto Trait Implementations§
impl Freeze for GroupByWithModifier
impl RefUnwindSafe for GroupByWithModifier
impl Send for GroupByWithModifier
impl Sync for GroupByWithModifier
impl Unpin for GroupByWithModifier
impl UnwindSafe for GroupByWithModifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
where 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
where T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
where T: for<'de> Deserialize<'de>,