Enum datafusion::sqlast::ASTNode [−][src]
pub enum ASTNode { SQLIdentifier(String), SQLWildcard, SQLCompoundIdentifier(Vec<String>), SQLBinaryExpr { left: Box<ASTNode>, op: SQLOperator, right: Box<ASTNode>, }, SQLCast { expr: Box<ASTNode>, data_type: SQLType, }, SQLNested(Box<ASTNode>), SQLUnary { operator: SQLOperator, rex: Box<ASTNode>, }, SQLLiteralLong(i64), SQLLiteralDouble(f64), SQLLiteralString(String), SQLFunction { id: String, args: Vec<ASTNode>, }, SQLOrderBy { expr: Box<ASTNode>, asc: bool, }, SQLSelect { projection: Vec<ASTNode>, relation: Option<Box<ASTNode>>, selection: Option<Box<ASTNode>>, order_by: Option<Vec<ASTNode>>, group_by: Option<Vec<ASTNode>>, having: Option<Box<ASTNode>>, limit: Option<Box<ASTNode>>, }, SQLCreateTable { name: String, columns: Vec<SQLColumnDef>, file_type: FileType, header_row: bool, location: String, }, }
SQL Abstract Syntax Tree (AST)
Variants
SQLIdentifier(String)
SQLWildcard
SQLCompoundIdentifier(Vec<String>)
SQLBinaryExpr
Fields of SQLBinaryExpr
left: Box<ASTNode> | |
op: SQLOperator | |
right: Box<ASTNode> |
SQLCast
Fields of SQLCast
expr: Box<ASTNode> | |
data_type: SQLType |
SQLNested(Box<ASTNode>)
SQLUnary
Fields of SQLUnary
operator: SQLOperator | |
rex: Box<ASTNode> |
SQLLiteralLong(i64)
SQLLiteralDouble(f64)
SQLLiteralString(String)
SQLFunction
Fields of SQLFunction
id: String | |
args: Vec<ASTNode> |
SQLOrderBy
Fields of SQLOrderBy
expr: Box<ASTNode> | |
asc: bool |
SQLSelect
Fields of SQLSelect
projection: Vec<ASTNode> | |
relation: Option<Box<ASTNode>> | |
selection: Option<Box<ASTNode>> | |
order_by: Option<Vec<ASTNode>> | |
group_by: Option<Vec<ASTNode>> | |
having: Option<Box<ASTNode>> | |
limit: Option<Box<ASTNode>> |
SQLCreateTable
Fields of SQLCreateTable
name: String | Table name |
columns: Vec<SQLColumnDef> | Optional schema |
file_type: FileType | File type (CSV or Parquet) |
header_row: bool | For CSV files, indicate whether the file has a header row or not |
location: String | Path to file or directory contianing files |
Trait Implementations
impl Debug for ASTNode
[src]
impl Debug for ASTNode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ASTNode
[src]
impl Clone for ASTNode
fn clone(&self) -> ASTNode
[src]
fn clone(&self) -> ASTNode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ASTNode
[src]
impl PartialEq for ASTNode