René's URL Explorer Experiment


Title: fix(resolve): fix resolving reference to CTEs by simonklee · Pull Request #3220 · sqlc-dev/sqlc · GitHub

Open Graph Title: fix(resolve): fix resolving reference to CTEs by simonklee · Pull Request #3220 · sqlc-dev/sqlc

X Title: fix(resolve): fix resolving reference to CTEs by simonklee · Pull Request #3220 · sqlc-dev/sqlc

Description: Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub.

Open Graph Description: Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix #3219 This is may not be the fix you want. I'm sure there is a bette...

X Description: Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix #3219 This is may not be the fix you want. I'm sure there is a b...

Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/3220

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:dfd5d2fe-0f71-c24b-7d6a-7a3618aa6dff
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9BDE:1E0399:6CBC4C:93BE78:6A51501A
html-safe-nonce2e5b8931780fa2bf85ecb43fe5d6ba2c5b3ae22c534686e4886dfc7746e69341
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkRFOjFFMDM5OTo2Q0JDNEM6OTNCRTc4OjZBNTE1MDFBIiwidmlzaXRvcl9pZCI6IjI2NjUwNTg5MzU4NzUxMjkzNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac908df496f2204e51ae9087a7855277186a0f197b954dfbc97b125c005a2ba124
hovercard-subject-tagpull_request:1741980372
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sqlc-dev/sqlc/3220/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d12c8d9f63955a057bca3ba2cc09e92647a49202255eb25c35a1a40e1516516b/sqlc-dev/sqlc/pull/3220
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d12c8d9f63955a057bca3ba2cc09e92647a49202255eb25c35a1a40e1516516b/sqlc-dev/sqlc/pull/3220
og:image:altFixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix #3219 This is may not be the fix you want. I'm sure there is a bette...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesimonklee
hostnamegithub.com
expected-hostnamegithub.com
None6f17634ed2af1d116850bcea6c63a70a4d72970f33ade1dd3eef3764b7e16994
turbo-cache-controlno-cache
go-importgithub.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id193160679
octolytics-dimension-repository_nwosqlc-dev/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193160679
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release511bff6ea06e144ed085ff736aea4c6404987b00
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/3220#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3220
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3220
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/pull/3220
Reloadhttps://github.com/sqlc-dev/sqlc/pull/3220
Reloadhttps://github.com/sqlc-dev/sqlc/pull/3220
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
sqlc-dev https://github.com/sqlc-dev
sqlchttps://github.com/sqlc-dev/sqlc
Notifications https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Fork 1.1k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Star 18k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Code https://github.com/sqlc-dev/sqlc
Issues 597 https://github.com/sqlc-dev/sqlc/issues
Pull requests 106 https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality 0 https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
Code https://github.com/sqlc-dev/sqlc
Issues https://github.com/sqlc-dev/sqlc/issues
Pull requests https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
simonkleehttps://github.com/simonklee
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
simonklee:fix-3219https://github.com/simonklee/sqlc/tree/fix-3219
Conversationhttps://github.com/sqlc-dev/sqlc/pull/3220
Commits2 (2)https://github.com/sqlc-dev/sqlc/pull/3220/commits
Checkshttps://github.com/sqlc-dev/sqlc/pull/3220/checks
Files changedhttps://github.com/sqlc-dev/sqlc/pull/3220/files
fix(resolve): fix resolving reference to CTEshttps://github.com/sqlc-dev/sqlc/pull/3220#top
simonkleehttps://github.com/simonklee
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
simonklee:fix-3219https://github.com/simonklee/sqlc/tree/fix-3219
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Feb 25, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issue-2152528742
#3219https://github.com/sqlc-dev/sqlc/issues/3219
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
mysql reuse model(with ... as ...) generated failed! #3216 https://github.com/sqlc-dev/sqlc/issues/3216
Bug When Using Table Aliases: table alias "all_users" does not exist #3169 https://github.com/sqlc-dev/sqlc/issues/3169
feat(compiler): Support subqueries in the FROM clause #3227 https://github.com/sqlc-dev/sqlc/pull/3227
https://github.com/ConradKurth
ConradKurthhttps://github.com/ConradKurth
Mar 9, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-1986704751
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Mar 24, 2024 https://github.com/sqlc-dev/sqlc/pull/3220#ref-issue-2152524588
Resolving reference to CTE column fails #3219 https://github.com/sqlc-dev/sqlc/issues/3219
https://github.com/msbatarce
msbatarcehttps://github.com/msbatarce
Apr 1, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2030159054
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/Jille
Jillehttps://github.com/Jille
Apr 4, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2038321026
@simonkleehttps://github.com/simonklee
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/Jille
Jillehttps://github.com/Jille
Apr 4, 2024 https://github.com/sqlc-dev/sqlc/pull/3220#ref-pullrequest-2226598216
feat(compiler): Support subqueries in the FROM clause #3322 https://github.com/sqlc-dev/sqlc/pull/3322
Jillehttps://github.com/Jille
Apr 4, 2024 https://github.com/sqlc-dev/sqlc/pull/3220#ref-commit-36dbbeb
https://github.com/Jille
DO NOT MERGE - regenerated some test files forhttps://github.com/Jille/sqlc/commit/36dbbebb05315ae5ced223ccd500a51fe8bd9503
sqlc-dev#3220https://github.com/sqlc-dev/sqlc/pull/3220
36dbbebhttps://github.com/Jille/sqlc/commit/36dbbebb05315ae5ced223ccd500a51fe8bd9503
https://github.com/simonklee
fix(resolve): fix resolving reference to CTEshttps://github.com/sqlc-dev/sqlc/pull/3220/commits/18985896e04b36146a745c828151e3024b9ef1ca
1898589https://github.com/sqlc-dev/sqlc/pull/3220/commits/18985896e04b36146a745c828151e3024b9ef1ca
sqlc-dev#3219https://github.com/sqlc-dev/sqlc/issues/3219
https://github.com/simonklee
simonkleehttps://github.com/simonklee
force-pushedhttps://github.com/sqlc-dev/sqlc/compare/87aa1a99dd8d3d7be87fba16d2735166b6d23cc4..18985896e04b36146a745c828151e3024b9ef1ca
87aa1a9https://github.com/sqlc-dev/sqlc/commit/87aa1a99dd8d3d7be87fba16d2735166b6d23cc4
1898589https://github.com/sqlc-dev/sqlc/commit/18985896e04b36146a745c828151e3024b9ef1ca
Compare https://github.com/sqlc-dev/sqlc/compare/87aa1a99dd8d3d7be87fba16d2735166b6d23cc4..18985896e04b36146a745c828151e3024b9ef1ca
April 5, 2024 07:28https://github.com/sqlc-dev/sqlc/pull/3220#event-12369229590
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Apr 5, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2039203200
@simonkleehttps://github.com/simonklee
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Apr 5, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2039227713
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/Jille
Updated the improved testshttps://github.com/sqlc-dev/sqlc/pull/3220/commits/ecddc20157a683e95e8fcbcf2a0a2419349e3c59
ecddc20https://github.com/sqlc-dev/sqlc/pull/3220/commits/ecddc20157a683e95e8fcbcf2a0a2419349e3c59
https://github.com/Jille
Jillehttps://github.com/Jille
Apr 5, 2024 https://github.com/sqlc-dev/sqlc/pull/3220#ref-pullrequest-2226397646
Verify #3220 + #3322 pass the CI #3321 https://github.com/sqlc-dev/sqlc/pull/3321
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Apr 5, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2040532291
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/Dmdv
Dmdvhttps://github.com/Dmdv
May 15, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2111557764
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
Sqlc could not support table alias (error: table alias "t1" does not exist) #2400 https://github.com/sqlc-dev/sqlc/issues/2400
Table alias not working #1385 https://github.com/sqlc-dev/sqlc/issues/1385
https://github.com/dkrieger
dkriegerhttps://github.com/dkrieger
Jul 1, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2200868643
@simonkleehttps://github.com/simonklee
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Jul 1, 2024https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-2201071070
@simonkleehttps://github.com/simonklee
@kyleconroyhttps://github.com/kyleconroy
@andrewmbentonhttps://github.com/andrewmbenton
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/simonklee
simonkleehttps://github.com/simonklee
Sep 6, 2024 https://github.com/sqlc-dev/sqlc/pull/3220#ref-issue-2509881147
Resolving references to CTE Columns fails #3585 https://github.com/sqlc-dev/sqlc/issues/3585
https://github.com/swallowstalker
swallowstalkerhttps://github.com/swallowstalker
Dec 20, 2024 https://github.com/sqlc-dev/sqlc/pull/3220#ref-pullrequest-2752539107
fix: cte and subquery relation name and columns should be registered on query catalog #3755 https://github.com/sqlc-dev/sqlc/pull/3755
https://github.com/sidkurella
sidkurellahttps://github.com/sidkurella
Feb 12, 2026https://github.com/sqlc-dev/sqlc/pull/3220#issuecomment-3893187832
@kyleconroyhttps://github.com/kyleconroy
@andrewmbentonhttps://github.com/andrewmbenton
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3220
Resolving reference to CTE column fails https://github.com/sqlc-dev/sqlc/issues/3219
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/3220
https://github.com/simonklee
https://github.com/ConradKurth
https://github.com/msbatarce
https://github.com/Jille
https://github.com/Dmdv
https://github.com/dkrieger
https://github.com/sidkurella
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.