-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SQL AST in accordance with the SQL spec #1623
Conversation
crates/sql/src/ast/subscription.rs
Outdated
//! = columnExpr '=' columnExpr | ||
//! | predicate_on AND predicate_on | ||
//! ; | ||
//! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an addition to the spec, because the predicate
allows expressions that will not optimize.
crates/sql/src/errors.rs
Outdated
#[display(fmt = "Change to several queries")] | ||
ChangeOrToManyQueries, | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be good idea to brainstorm which suggestion could enhance the experience of errors.
crates/sql/src/errors.rs
Outdated
} | ||
|
||
#[derive(Error, Debug)] | ||
pub enum SqlUnsupported { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A single place to see what we need to add later, maybe.
baa11b1
to
0322ea0
Compare
Closes #1563. Co-authored-by: joshua-spacetime <[email protected]>
40b852d
to
f9c4130
Compare
Description of Changes
The first step towards updating the parsing of
SQL
to match the spec forSpacetimeDB
, as asked by ticket #1563.This is the syntactic parser, without being integrated yet into the codebase, to be done later.
Expected complexity level and risk
1
Testing
Describe any testing you've done, and any testing you'd like your reviewers to do,
so that you're confident that all the changes work as expected!
ast