pub enum DdlStatement {
CreateExternalTable(Box<CreateExternalTable>),
CreateMemoryTable(CreateMemoryTable),
CreateView(CreateView),
CreateCatalogSchema(CreateCatalogSchema),
CreateCatalog(CreateCatalog),
CreateIndex(CreateIndex),
DropTable(DropTable),
DropView(DropView),
DropCatalogSchema(DropCatalogSchema),
CreateFunction(Box<CreateFunction>),
DropFunction(DropFunction),
}Expand description
Various types of DDL (CREATE / DROP) catalog manipulation
Variants§
CreateExternalTable(Box<CreateExternalTable>)
Creates an external table. Boxed to keep LogicalPlan enum size down
— CreateExternalTable is ~312 bytes, dwarfing every other variant
in the plan tree and forcing the whole enum to that width.
CreateMemoryTable(CreateMemoryTable)
Creates an in memory table.
CreateView(CreateView)
Creates a new view.
CreateCatalogSchema(CreateCatalogSchema)
Creates a new catalog schema.
CreateCatalog(CreateCatalog)
Creates a new catalog (aka “Database”).
CreateIndex(CreateIndex)
Creates a new index.
DropTable(DropTable)
Drops a table.
DropView(DropView)
Drops a view.
DropCatalogSchema(DropCatalogSchema)
Drops a catalog schema
CreateFunction(Box<CreateFunction>)
Create function statement. Boxed for the same reason as
Self::CreateExternalTable (~288 bytes).
DropFunction(DropFunction)
Drop function statement
Implementations§
Source§impl DdlStatement
impl DdlStatement
Sourcepub fn schema(&self) -> &DFSchemaRef
pub fn schema(&self) -> &DFSchemaRef
Get a reference to the logical plan’s schema
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Return a descriptive string describing the type of this
DdlStatement
Sourcepub fn inputs(&self) -> Vec<&LogicalPlan>
pub fn inputs(&self) -> Vec<&LogicalPlan>
Return all inputs for this plan
Sourcepub fn display(&self) -> impl Display + '_
pub fn display(&self) -> impl Display + '_
Return a formatable structure with the a human readable
description of this LogicalPlan node per node, not including
children.
See crate::LogicalPlan::display for an example
Trait Implementations§
Source§impl Clone for DdlStatement
impl Clone for DdlStatement
Source§fn clone(&self) -> DdlStatement
fn clone(&self) -> DdlStatement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DdlStatement
impl Debug for DdlStatement
impl Eq for DdlStatement
Source§impl Hash for DdlStatement
impl Hash for DdlStatement
Source§impl PartialEq for DdlStatement
impl PartialEq for DdlStatement
Source§impl PartialOrd for DdlStatement
impl PartialOrd for DdlStatement
impl StructuralPartialEq for DdlStatement
Auto Trait Implementations§
impl !RefUnwindSafe for DdlStatement
impl !UnwindSafe for DdlStatement
impl Freeze for DdlStatement
impl Send for DdlStatement
impl Sync for DdlStatement
impl Unpin for DdlStatement
impl UnsafeUnpin for DdlStatement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more