mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-06 22:20:31 +00:00
Extract ASTNode::SQLSelect to a separate struct (1/5)
This will allow re-using it for SQLStatement in a later commit. (Also split the new struct into a separate file, other query-related types will be moved here in a follow-up commit.)
This commit is contained in:
parent
50b5724c39
commit
d8173d4196
5 changed files with 97 additions and 96 deletions
|
@ -1142,7 +1142,7 @@ impl Parser {
|
|||
next_token
|
||||
))
|
||||
} else {
|
||||
Ok(ASTNode::SQLSelect {
|
||||
Ok(ASTNode::SQLSelect(SQLSelect {
|
||||
projection,
|
||||
selection,
|
||||
relation,
|
||||
|
@ -1151,7 +1151,7 @@ impl Parser {
|
|||
order_by,
|
||||
group_by,
|
||||
having,
|
||||
})
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue