Skip to content

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
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>
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants