pub enum SparkStatement {
Sqlparser(Box<Statement>),
DescribeDetail {
table: ObjectName,
},
ShowDatabases,
ShowTables {
db: Option<ObjectName>,
},
Describe {
table: ObjectName,
col: Option<Ident>,
extended: bool,
},
}Expand description
Spark-oriented statement variants that are not reliably represented by upstream sqlparser AST.
This enum is intended to capture Spark/PySpark command forms where upstream parsing either:
- does not accept the syntax, or
- accepts it but in a way that’s inconvenient for execution-layer parity.
Variants§
Sqlparser(Box<Statement>)
A statement parsed by upstream sqlparser.
DescribeDetail
DESCRIBE DETAIL <table> (Delta Lake; Spark command).
Fields
§
table: ObjectNameShowDatabases
SHOW DATABASES (Spark command).
ShowTables
SHOW TABLES or SHOW TABLES IN/FROM <db> (Spark command).
Fields
§
db: Option<ObjectName>Describe
DESCRIBE/DESC [TABLE] [EXTENDED] <table> [<col>] (Spark/PySpark parity).
Trait Implementations§
Source§impl Clone for SparkStatement
impl Clone for SparkStatement
Source§fn clone(&self) -> SparkStatement
fn clone(&self) -> SparkStatement
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 moreSource§impl Debug for SparkStatement
impl Debug for SparkStatement
Source§impl PartialEq for SparkStatement
impl PartialEq for SparkStatement
impl StructuralPartialEq for SparkStatement
Auto Trait Implementations§
impl Freeze for SparkStatement
impl RefUnwindSafe for SparkStatement
impl Send for SparkStatement
impl Sync for SparkStatement
impl Unpin for SparkStatement
impl UnsafeUnpin for SparkStatement
impl UnwindSafe for SparkStatement
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