Skip to content
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

feat(compiler): Support subqueries in the FROM clause (second coming) #3310

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

Jille
Copy link
Contributor

@Jille Jille commented Apr 3, 2024

issue #2989, #2400 and probably others

This is the same as #3227, but rebased to main on Kyle's request.

simonklee and others added 3 commits April 3, 2024 08:54
Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing
its columns when resolving catalog references.

Fix sqlc-dev#3219
@simonklee
Copy link
Contributor

Thanks for rebasing, @Jille.

@kyleconroy kyleconroy merged commit 3a3e387 into sqlc-dev:main Apr 4, 2024
8 checks passed
@kyleconroy kyleconroy added this to the 1.27.0 milestone Apr 4, 2024
@kyleconroy
Copy link
Collaborator

Merging this PR caused test failures again, but I now know why. On pull requests the tests aren't being correctly run using the database analyzer. Once I get that fixed the tests will correctly fail on this change. Sorry for all the back and forth here.

@kyleconroy
Copy link
Collaborator

Alright, @Jille want to try a third time? The database analyzer tests, which were failing, will now run on your PR.

lisitsky pushed a commit to lisitsky/sqlc that referenced this pull request Jun 21, 2024
…sqlc-dev#3310)

* fix(resolve): fix resolving reference to CTEs

Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing
its columns when resolving catalog references.

Fix sqlc-dev#3219

* feat(compiler): Support subqueries in the FROM clause

issue sqlc-dev#2989, sqlc-dev#2400 and probably others

* chore(endtoend): Bump version in cte_resolve_ref to 1.26.0 to appease CI

---------

Co-authored-by: Simon Klee <hello@simonklee.dk>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants