Skip to content

Index CTEs inside resolveCatalogRefs#4274

Open
alexrjones wants to merge 3 commits intosqlc-dev:mainfrom
alexrjones:alexrjones/cte-column-reference
Open

Index CTEs inside resolveCatalogRefs#4274
alexrjones wants to merge 3 commits intosqlc-dev:mainfrom
alexrjones:alexrjones/cte-column-reference

Conversation

@alexrjones
Copy link

Fixes #3924

CTEs were not being added to the table index inside resolveCatalogRefs, making it impossible to reference columns from the CTE inside itself, which is important for recursive queries.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🔧 golang labels Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files. 🔧 golang

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WITH RECURSIVE JOIN table alias does not exist

1 participant