René's URL Explorer Experiment


Title: [BUG] EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers lost during parse-toString round-trip · Issue #2419 · JSQLParser/JSqlParser · GitHub

Open Graph Title: [BUG] EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers lost during parse-toString round-trip · Issue #2419 · JSQLParser/JSqlParser

X Title: [BUG] EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers lost during parse-toString round-trip · Issue #2419 · JSQLParser/JSqlParser

Description: Description EXCEPT ALL, EXCEPT DISTINCT, MINUS ALL, and MINUS DISTINCT modifiers are silently dropped during parsing. The parser accepts the modifier syntax but does not pass the captured modifier string to the ExceptOp and MinusOp const...

Open Graph Description: Description EXCEPT ALL, EXCEPT DISTINCT, MINUS ALL, and MINUS DISTINCT modifiers are silently dropped during parsing. The parser accepts the modifier syntax but does not pass the captured modifier ...

X Description: Description EXCEPT ALL, EXCEPT DISTINCT, MINUS ALL, and MINUS DISTINCT modifiers are silently dropped during parsing. The parser accepts the modifier syntax but does not pass the captured modifier ...

Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2419

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers lost during parse-toString round-trip","articleBody":"### Description\n\n`EXCEPT ALL`, `EXCEPT DISTINCT`, `MINUS ALL`, and `MINUS DISTINCT` modifiers are silently dropped during parsing. The parser accepts the modifier syntax but does not pass the captured modifier string to the `ExceptOp` and `MinusOp` constructors.\n\n### Reproducer\n\n```java\nString sql = \"SELECT a FROM t1 EXCEPT ALL SELECT a FROM t2\";\nStatement stmt = CCJSqlParserUtil.parse(sql);\nSystem.out.println(stmt.toString());\n// Expected: SELECT a FROM t1 EXCEPT ALL SELECT a FROM t2\n// Actual:   SELECT a FROM t1 EXCEPT SELECT a FROM t2\n```\n\nThe same issue affects `MINUS ALL`:\n```java\nString sql = \"SELECT a FROM t1 MINUS ALL SELECT a FROM t2\";\nStatement stmt = CCJSqlParserUtil.parse(sql);\nSystem.out.println(stmt.toString());\n// Expected: SELECT a FROM t1 MINUS ALL SELECT a FROM t2\n// Actual:   SELECT a FROM t1 MINUS SELECT a FROM t2\n```\n\n### Root Cause\n\nIn `JSqlParserCC.jjt`, the `SetOperationList` rule captures the modifier via `modifier=SetOperationModifier()` but constructs `MinusOp` and `ExceptOp` with their no-arg constructors (which default to empty string), discarding the modifier:\n\n```\n\u003cK_MINUS\u003e [ modifier=SetOperationModifier() ] { MinusOp minus = new MinusOp(); ... }\n\u003cK_EXCEPT\u003e [ modifier=SetOperationModifier() ] { ExceptOp except = new ExceptOp(); ... }\n```\n\nCompare with `UnionOp` and `IntersectOp` which correctly pass the modifier:\n```\n\u003cK_UNION\u003e [ modifier=SetOperationModifier() ] { UnionOp union = new UnionOp(modifier); ... }\n\u003cK_INTERSECT\u003e [ modifier=SetOperationModifier() ] { IntersectOp intersect = new IntersectOp(modifier); ... }\n```\n\nAdditionally, the `modifier` variable was not reset between iterations of the set-operation loop, causing modifiers to leak from one operator to the next (e.g., `UNION ALL ... EXCEPT` would incorrectly make the EXCEPT inherit `ALL`).\n\n### Impact\n\n- **Semantic correctness**: `EXCEPT ALL` preserves duplicates while `EXCEPT` removes them. Silently dropping the `ALL` modifier changes query semantics.\n- **Round-trip fidelity**: `parse(sql).toString()` does not reproduce the original SQL.\n\n### Affected versions\n\nCurrent `master` (regression introduced in commit `5fe938bc` which refactored `SetOperationModifier` handling for the `CORRESPONDING` feature).\n\n### Fix\n\n1. Pass `modifier` to `MinusOp` and `ExceptOp` constructors\n2. Reset `modifier = null` at the start of each set-operation loop iteration\n\nA PR with the fix and regression tests will follow.","author":{"url":"https://github.com/queelius","@type":"Person","name":"queelius"},"datePublished":"2026-03-25T10:46:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2419/JSqlParser/issues/2419"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8de52610-5aa2-bffb-685b-6d3b2cba976d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id91AC:144FE2:141C5D8:1CDDC01:6A634B38
html-safe-nonce525c43b760fa51aff4a61426c69c69bc8d969bee9c3956dfdefcd0d13811f005
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUFDOjE0NEZFMjoxNDFDNUQ4OjFDRERDMDE6NkE2MzRCMzgiLCJ2aXNpdG9yX2lkIjoiMTg1MTY3NzczMzAwNzA4NDM0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3934b60ad0dcc39c243e6ac8e588b99acfb2472cbeb90881a178c3b29c6d023b
hovercard-subject-tagissue:4134411160
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/2419/issue_layout
twitter:imagehttps://opengraph.githubassets.com/893d94d653732adc642a11de68a51091578705489c95dd482bdb6d7479fcee94/JSQLParser/JSqlParser/issues/2419
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/893d94d653732adc642a11de68a51091578705489c95dd482bdb6d7479fcee94/JSQLParser/JSqlParser/issues/2419
og:image:altDescription EXCEPT ALL, EXCEPT DISTINCT, MINUS ALL, and MINUS DISTINCT modifiers are silently dropped during parsing. The parser accepts the modifier syntax but does not pass the captured modifier ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamequeelius
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
turbo-cache-controlno-preview
go-importgithub.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git
octolytics-dimension-user_id4643847
octolytics-dimension-user_loginJSQLParser
octolytics-dimension-repository_id1944709
octolytics-dimension-repository_nwoJSQLParser/JSqlParser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1944709
octolytics-dimension-repository_network_root_nwoJSQLParser/JSqlParser
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
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/issues/2419#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fissues%2F2419
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2FJSQLParser%2FJSqlParser%2Fissues%2F2419
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2419
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2419
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2419
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/issues/2419
JSQLParser https://github.com/JSQLParser
JSqlParserhttps://github.com/JSQLParser/JSqlParser
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/issues/2419
Notifications https://github.com/login?return_to=%2FJSQLParser%2FJSqlParser
Fork 1.4k https://github.com/login?return_to=%2FJSQLParser%2FJSqlParser
Star 6k https://github.com/login?return_to=%2FJSQLParser%2FJSqlParser
Code https://github.com/JSQLParser/JSqlParser
Issues 88 https://github.com/JSQLParser/JSqlParser/issues
Pull requests 2 https://github.com/JSQLParser/JSqlParser/pulls
Discussions https://github.com/JSQLParser/JSqlParser/discussions
Actions https://github.com/JSQLParser/JSqlParser/actions
Projects https://github.com/JSQLParser/JSqlParser/projects
Wiki https://github.com/JSQLParser/JSqlParser/wiki
Security and quality 0 https://github.com/JSQLParser/JSqlParser/security
Insights https://github.com/JSQLParser/JSqlParser/pulse
Code https://github.com/JSQLParser/JSqlParser
Issues https://github.com/JSQLParser/JSqlParser/issues
Pull requests https://github.com/JSQLParser/JSqlParser/pulls
Discussions https://github.com/JSQLParser/JSqlParser/discussions
Actions https://github.com/JSQLParser/JSqlParser/actions
Projects https://github.com/JSQLParser/JSqlParser/projects
Wiki https://github.com/JSQLParser/JSqlParser/wiki
Security and quality https://github.com/JSQLParser/JSqlParser/security
Insights https://github.com/JSQLParser/JSqlParser/pulse
#2420https://github.com/JSQLParser/JSqlParser/pull/2420
[BUG] EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers lost during parse-toString round-triphttps://github.com/JSQLParser/JSqlParser/issues/2419#top
#2420https://github.com/JSQLParser/JSqlParser/pull/2420
https://github.com/queelius
queeliushttps://github.com/queelius
on Mar 25, 2026https://github.com/JSQLParser/JSqlParser/issues/2419#issue-4134411160
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.