Skip to content
Snippets Groups Projects
Commit 257df814 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

feat: remove subquery from projection in the grammar

We don't want to mess with subqueries in projection as our query
set doesn't contain such queries. It also simplifies some
transformations (equality propagation for example).
parent 02af683a
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -7,7 +7,7 @@ Query = _{ Select | UnionAll | Values | Insert }
(^"on" ~ Condition)? ~ (^"where" ~ Selection)?
}
Projection = { Column ~ ("," ~ Column)*? }
Column = { Row | Asterisk | Alias | Value | SubQuery }
Column = { Row | Asterisk | Alias | Value }
Alias = {Value ~ ^"as" ~ (String | QuotedName) }
Asterisk = @{ "*" }
Selection = { Expr* }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment