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

Fields of SQLBinaryExpr

Fields of SQLCast

Fields of SQLUnary

Fields of SQLFunction

Fields of SQLOrderBy

Fields of SQLSelect

Fields of SQLCreateTable

Table name

Optional schema

File type (CSV or Parquet)

For CSV files, indicate whether the file has a header row or not

Path to file or directory contianing files

Trait Implementations

impl Debug for ASTNode
[src]

Formats the value using the given formatter. Read more

impl Clone for ASTNode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ASTNode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ASTNode

impl Sync for ASTNode