René's URL Explorer Experiment


Title: fix: keep set operations after subquery operands at the outer query by kvlonge · Pull Request #914 · sqlstack-io/sqlbuild · GitHub

Open Graph Title: fix: keep set operations after subquery operands at the outer query by kvlonge · Pull Request #914 · sqlstack-io/sqlbuild

X Title: fix: keep set operations after subquery operands at the outer query by kvlonge · Pull Request #914 · sqlstack-io/sqlbuild

Description: Why A set operation after a parenthesised subquery in an expression (WHERE a.x < (SELECT …) UNION ALL SELECT …, and the same in HAVING, JOIN ON or BETWEEN) was parsed as part of the subquery. That caused a false B216 column-count error and mis-indented UNION ALL in sqb format (CHI-473). Separately, SQL tests whose fixtures are long UNION ALL chains were analysed in quadratic time (CHI-475). Changes Pin polyglot-sql to sqlstack-io/polyglot#32, which fixes the parse and builds set-operation scopes in linear time. E2E test across ten query shapes: compile, build, the SQBRSQL020 rule, sqb format and a recompile are clean, and a real column-count mismatch still raises B216. Formatter layout test for UNION ALL / EXCEPT / INTERSECT across six dialects. Performance guard: native analysis of 200-row vs 50-row UNION ALL fixtures stays under 6x (new about 3x, old pin 19x). Verification Polyglot: regression and scaling tests; old vs new byte-identical on 330+ query × dialect cases apart from the intended fixes; independent review (98 statements in 9 dialects, 414 analysis runs). SQLBuild: focused E2E/unit tests, the new performance guard, make test, make check-ci.

Open Graph Description: Why A set operation after a parenthesised subquery in an expression (WHERE a.x < (SELECT …) UNION ALL SELECT …, and the same in HAVING, JOIN ON or BETWEEN) was parsed as part of the subquery. Th...

X Description: Why A set operation after a parenthesised subquery in an expression (WHERE a.x &lt; (SELECT …) UNION ALL SELECT …, and the same in HAVING, JOIN ON or BETWEEN) was parsed as part of the subquery...

Opengraph URL: https://github.com/sqlstack-io/sqlbuild/pull/914

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2c3cc57d-6693-8517-5834-1995ab192609
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE956:7CBC:35345:485F6:6B042BA8
html-safe-noncee47a6e0e8f2d548c76f52b7c58434a4406e7d46ffb09420f77a03110648b1449
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTU2OjdDQkM6MzUzNDU6NDg1RjY6NkIwNDJCQTgiLCJ2aXNpdG9yX2lkIjoiNTI0MDQzNjIwNDA1ODcxNzA5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0cac96c991aefd31173c785e8dc3f0592bf8af7d8ab38281ecda18ef23e7f1ee
hovercard-subject-tagpull_request:4722310259
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/sqlstack-io/sqlbuild/pull/914/files
twitter:imagehttps://avatars.githubusercontent.com/u/273747162?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/273747162?s=400&v=4
og:image:altWhy A set operation after a parenthesised subquery in an expression (WHERE a.x < (SELECT …) UNION ALL SELECT …, and the same in HAVING, JOIN ON or BETWEEN) was parsed as part of the subquery. Th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/sqlstack-io/sqlbuild git https://github.com/sqlstack-io/sqlbuild.git
octolytics-dimension-user_id280907144
octolytics-dimension-user_loginsqlstack-io
octolytics-dimension-repository_id1228098214
octolytics-dimension-repository_nwosqlstack-io/sqlbuild
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1228098214
octolytics-dimension-repository_network_root_nwosqlstack-io/sqlbuild
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlstack-io/sqlbuild/pull/914/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlstack-io%2Fsqlbuild%2Fpull%2F914%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlstack-io%2Fsqlbuild%2Fpull%2F914%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sqlstack-io%2Fsqlbuild
Reloadhttps://github.com/sqlstack-io/sqlbuild/pull/914/files
Reloadhttps://github.com/sqlstack-io/sqlbuild/pull/914/files
Reloadhttps://github.com/sqlstack-io/sqlbuild/pull/914/files
sqlstack-iohttps://github.com/sqlstack-io
sqlbuildhttps://github.com/sqlstack-io/sqlbuild
Codehttps://github.com/sqlstack-io/sqlbuild
Issues1 (1)https://github.com/sqlstack-io/sqlbuild/issues
Pull requests1 (1)https://github.com/sqlstack-io/sqlbuild/pulls
Actionshttps://github.com/sqlstack-io/sqlbuild/actions
Projectshttps://github.com/sqlstack-io/sqlbuild/projects
Security and qualityhttps://github.com/sqlstack-io/sqlbuild/security
Insightshttps://github.com/sqlstack-io/sqlbuild/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fsqlstack-io%2Fsqlbuild%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsqlstack-io%2Fsqlbuild%2Fissues%2Fnew%2Fchoose
kvlongehttps://github.com/kvlonge
mainhttps://github.com/sqlstack-io/sqlbuild/tree/main
fix/union-after-scalar-subqueryhttps://github.com/sqlstack-io/sqlbuild/tree/fix/union-after-scalar-subquery
Conversation 0 https://github.com/sqlstack-io/sqlbuild/pull/914
Commits 3 https://github.com/sqlstack-io/sqlbuild/pull/914/commits
Checks 34 https://github.com/sqlstack-io/sqlbuild/pull/914/checks
Files changed https://github.com/sqlstack-io/sqlbuild/pull/914/files
Please reload this pagehttps://github.com/sqlstack-io/sqlbuild/pull/914/files
fix: keep set operations after subquery operands at the outer query https://github.com/sqlstack-io/sqlbuild/pull/914/files#top
Show all changes 3 commits https://github.com/sqlstack-io/sqlbuild/pull/914/files
fddf2de fix: keep set operations after subquery predicates at the outer query kvlonge Oct 2, 2026 https://github.com/sqlstack-io/sqlbuild/pull/914/commits/fddf2def6952245c57da6a9efb6879a54fda1f97
9235f6a perf: analyze long UNION ALL test fixtures in linear time kvlonge Oct 2, 2026 https://github.com/sqlstack-io/sqlbuild/pull/914/commits/9235f6a5e4d45ed8342aa9342931f545663961da
43e3951 build: pin polyglot to the merged set-operation fixes kvlonge Oct 2, 2026 https://github.com/sqlstack-io/sqlbuild/pull/914/commits/43e395135d5f8c27a244f4d9f7fb6effa50c0d20
Clear filters https://github.com/sqlstack-io/sqlbuild/pull/914/files
Please reload this pagehttps://github.com/sqlstack-io/sqlbuild/pull/914/files
Please reload this pagehttps://github.com/sqlstack-io/sqlbuild/pull/914/files
Cargo.lock https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
tests.rs https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-13b3550b5c6838499d4ca4eb44636f032fe8cfe690b5a4183c0bc6c15220a3c6
test_set_operation_formatter.rs https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-9f324ea38525de1bc108744a07de17299f962b0a6e568cd8719aea05106ed9ff
_test_types.py https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-1e55988a76599a0d85867049715c2ad4be53812d19db484db2cc5a87a420266a
helpers.py https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-8b658f6f4e4a5a2ae62c622e85118b2f03008d4efe6f53fa920991fcbe04bd62
test_compile_performance.py https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-4674fc1f3b7b1c6cae132e9d33cef86d48a7a76316b8150a6122e7ae6fc9cecd
test_set_operation_after_subquery_operand.py https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-53cc3a0fdf965cc859a3c3c5e0b7034eabfe7d7c8e794c8daeb6f280878be00d
Cargo.lockhttps://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/sqlstack-io/sqlbuild/blob/43e395135d5f8c27a244f4d9f7fb6effa50c0d20/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/sqlstack-io/sqlbuild/pull/914/files
Cargo.tomlhttps://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/sqlstack-io/sqlbuild/blob/43e395135d5f8c27a244f4d9f7fb6effa50c0d20/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlstack-io/sqlbuild/pull/914/{{ revealButtonHref }}
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
crates/sqlbuild-rules-native/src/sql_lint/tests.rshttps://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-13b3550b5c6838499d4ca4eb44636f032fe8cfe690b5a4183c0bc6c15220a3c6
View file https://github.com/sqlstack-io/sqlbuild/blob/43e395135d5f8c27a244f4d9f7fb6effa50c0d20/crates/sqlbuild-rules-native/src/sql_lint/tests.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlstack-io/sqlbuild/pull/914/{{ revealButtonHref }}
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-13b3550b5c6838499d4ca4eb44636f032fe8cfe690b5a4183c0bc6c15220a3c6
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-13b3550b5c6838499d4ca4eb44636f032fe8cfe690b5a4183c0bc6c15220a3c6
crates/sqlbuild-rules-native/src/sql_lint/tests/test_set_operation_formatter.rshttps://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-9f324ea38525de1bc108744a07de17299f962b0a6e568cd8719aea05106ed9ff
View file https://github.com/sqlstack-io/sqlbuild/blob/43e395135d5f8c27a244f4d9f7fb6effa50c0d20/crates/sqlbuild-rules-native/src/sql_lint/tests/test_set_operation_formatter.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlstack-io/sqlbuild/pull/914/{{ revealButtonHref }}
tests/e2e/src/sqlbuild/cli/commands/main/compile/_test_types.pyhttps://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-1e55988a76599a0d85867049715c2ad4be53812d19db484db2cc5a87a420266a
View file https://github.com/sqlstack-io/sqlbuild/blob/43e395135d5f8c27a244f4d9f7fb6effa50c0d20/tests/e2e/src/sqlbuild/cli/commands/main/compile/_test_types.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlstack-io/sqlbuild/pull/914/{{ revealButtonHref }}
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-1e55988a76599a0d85867049715c2ad4be53812d19db484db2cc5a87a420266a
tests/e2e/src/sqlbuild/cli/commands/main/compile/helpers.pyhttps://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-8b658f6f4e4a5a2ae62c622e85118b2f03008d4efe6f53fa920991fcbe04bd62
View file https://github.com/sqlstack-io/sqlbuild/blob/43e395135d5f8c27a244f4d9f7fb6effa50c0d20/tests/e2e/src/sqlbuild/cli/commands/main/compile/helpers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlstack-io/sqlbuild/pull/914/{{ revealButtonHref }}
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-8b658f6f4e4a5a2ae62c622e85118b2f03008d4efe6f53fa920991fcbe04bd62
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-8b658f6f4e4a5a2ae62c622e85118b2f03008d4efe6f53fa920991fcbe04bd62
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-8b658f6f4e4a5a2ae62c622e85118b2f03008d4efe6f53fa920991fcbe04bd62
https://github.com/sqlstack-io/sqlbuild/pull/914/files#diff-8b658f6f4e4a5a2ae62c622e85118b2f03008d4efe6f53fa920991fcbe04bd62
Please reload this pagehttps://github.com/sqlstack-io/sqlbuild/pull/914/files
Please reload this pagehttps://github.com/sqlstack-io/sqlbuild/pull/914/files
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.