Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
Description
Implement SQL parser that can take a Vec<SQLToken> and produce a SQL AST.
We can potentially break this down into separate JIRAs.
It needs to support:
- Single table SELECT ... FROM
- WHERE
- GROUP BY
- ORDER BY
- LIMIT
It needs to support the following expressions:
- Literals (long, string, double)
- Identifiers
- Binary expressions
- Arithmetic (+, -, *, /, %)
- Boolean (AND, OR)
- Comparison (=, !=, <, <=, >, >=, <>)
- Unary boolean expression: NOT
- CAST(expr AS type)
- Aliased expressions: expr AS alias
- Scalar functions
- Aggregate functions