mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 15:04:04 +00:00
Rename ASTNode to Expr
The ASTNode enum was confusingly named. In the past, the name made sense, as the enum contained nearly all of the nodes in the AST, but over time, pieces have been split into different structs, like SQLStatement and SQLQuery. The ASTNode enum now contains only contains expression nodes, so Expr is a better name. Also rename the UnnamedExpression and ExpressionWithAlias variants of SQLSelectItem to UnnamedExpr and ExprWithAlias, respectively, to match the new shorthand for the word "expression".
This commit is contained in:
parent
e6b26330df
commit
646d1e13ca
8 changed files with 255 additions and 264 deletions
|
@ -106,9 +106,7 @@ fn parse_create_table_with_defaults() {
|
|||
options: vec![
|
||||
ColumnOptionDef {
|
||||
name: None,
|
||||
option: ColumnOption::Default(ASTNode::SQLValue(Value::Boolean(
|
||||
true
|
||||
))),
|
||||
option: ColumnOption::Default(Expr::SQLValue(Value::Boolean(true))),
|
||||
},
|
||||
ColumnOptionDef {
|
||||
name: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue