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 #3227

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

Jille
Copy link
Contributor

@Jille Jille commented Feb 27, 2024

issue #2989, #2400 and probably others

simonklee and others added 2 commits February 25, 2024 01:03
Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing
its columns when resolving catalog references.

Fix sqlc-dev#3219
@Jille
Copy link
Contributor Author

Jille commented Feb 27, 2024

I've based this on #3220, so let's merge that first.

@SnoozeThis #3220

@SnoozeThis
Copy link

(https://snoozeth.is/tnvQn2qtHWc) I will wait until #3220 is merged and then add a comment.

@kyleconroy kyleconroy merged commit 3f129e7 into sqlc-dev:main Mar 28, 2024
8 checks passed
kyleconroy added a commit that referenced this pull request Mar 28, 2024
kyleconroy added a commit that referenced this pull request Mar 28, 2024
@kyleconroy
Copy link
Collaborator

I had to revert this PR as it was causing quite a few tests to fail.

@simonklee
Copy link
Contributor

I had to revert this PR as it was causing quite a few tests to fail.

I don't quite understand the CI setup if the checks passed in the PR but failed after merge.

Could you, if possible, re-run checks in #3220 and this PR separately to identify where the regression is. As I wrote in the issue related to #3220. I haven't had issues with the changeset to that PR.

@msbatarce
Copy link

I was waiting for this PR, just downloaded version 1.26, mainly for #3219, but when it didn't worked I got here. Hope this can be solved, thanks to everyone for making sqlc great.

@kyleconroy
Copy link
Collaborator

This branch needs to be rebased on main. Once that happens, the failing tests will show up.

@Jille
Copy link
Contributor Author

Jille commented Apr 3, 2024

https://github.com/sqlc-dev/sqlc/actions/runs/8534508908/job/23379055224?pr=3310

The failing tests are because @simonklee's PR was open for so long, there was a version bump in between (from 1.25 -> 1.26) which caused the tests to fail :(

lisitsky pushed a commit to lisitsky/sqlc that referenced this pull request Jun 21, 2024
* 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

---------

Co-authored-by: Simon Klee <[email protected]>
lisitsky pushed a commit to lisitsky/sqlc that referenced this pull request Jun 21, 2024
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.

5 participants