clockworklabs / clockworklabs/SpacetimeDB

Update SQL AST in accordance with the SQL spec

Open
#1,563 0 comments 0 reactions 1 assignee View on GitHub

@mamcx is already working on this.

Since Aug 1, 2024.

release-1.0
Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

The SqlAst should represent the SQL grammar as defined in the spec. As such there are a few changes we should make.

  1. No name resolution or type checking

    We should have a purely syntactic representation. Type checking and name resolution should be done after we've derived this representation.

  2. No column expressions

    Right now we have Column::UnnamedExpr(Expr), but we decided in the spec to only support column names, qualified and unqualified.

  3. Errors

    We want good internal as well as user facing error messages. error-stack looks like a way to achieve the former, ariadne the latter. Now is a good time to experiment with both.

We should probably define a new AST type first. We can replace SqlAst with the new type after we've implemented type checking and name resolution for the new type.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.