pub enum Partition {
Identifier(Ident),
Expr(Expr),
Part(Expr),
Partitions(Vec<Expr>),
}Expand description
PARTITION statement used in ALTER TABLE et al. such as in Hive and ClickHouse SQL. For example, ClickHouse’s OPTIMIZE TABLE supports syntax like PARTITION ID ‘partition_id’ and PARTITION expr. ClickHouse
Variants§
Identifier(Ident)
ClickHouse supports PARTITION ID ‘partition_id’ syntax.
Expr(Expr)
ClickHouse supports PARTITION expr syntax.
Part(Expr)
ClickHouse supports PART expr which represents physical partition in disk. ClickHouse
Partitions(Vec<Expr>)
Hive supports multiple partitions in PARTITION (part1, part2, …) syntax.
Trait Implementations§
Source§impl Ord for Partition
impl Ord for Partition
Source§impl PartialOrd for Partition
impl PartialOrd for Partition
Source§impl VisitMut for Partition
impl VisitMut for Partition
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 moreimpl Eq for Partition
impl StructuralPartialEq for Partition
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnsafeUnpin for Partition
impl UnwindSafe for Partition
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