René's URL Explorer Experiment


Title: Unify column option storage and mutation contracts by minleejae · Pull Request #2769 · JSQLParser/JSqlParser · GitHub

Open Graph Title: Unify column option storage and mutation contracts by minleejae · Pull Request #2769 · JSQLParser/JSqlParser

X Title: Unify column option storage and mutation contracts by minleejae · Pull Request #2769 · JSQLParser/JSqlParser

Description: Purpose Give callers one predictable way to inspect and edit CREATE/ALTER column options. Today getColumnSpecs().add(...) changes SQL for raw specifications but silently edits a detached copy when structured options are present. Current design (As-is) ColumnDefinition has mutually exclusive columnSpecs and columnOptions lists. The grammar collects both token and node representations, then discards the nodes for raw-only definitions. List ownership and getter mutation behavior depend on which representation is active. Target design (To-be) Keep one ordered List, retaining opaque specifications as Kind.OTHER nodes. Remove the duplicate field and grammar token collection. Return an unmodifiable token snapshot from getColumnSpecs() in every mode. Use addColumnSpecs(...) to append, setColumnSpecs(...) to explicitly replace all options with raw text, or edit the mutable nodes/list returned by getColumnOptions(). Copy incoming token lists and option-list membership while preserving the identity of mutable child nodes. Appending raw tokens preserves structured expressions, references and visitor access; raw text is never automatically parsed. Preserve unset versus explicitly empty options. Keep constructors independent of overridable setters, and document migration examples and ownership contracts. API migration: mutating getColumnSpecs() now throws UnsupportedOperationException. Raw-only options are also visible through getColumnOptions(); ALTER definitions without options expose an empty option list. Consumers should inspect node kinds instead of using list nullness to detect structured options. SQL acceptance and rendering are unchanged. Validation Java 17 Gradle spotlessApply check: 9,962 tests, 9,937 passed, 25 skipped, zero failures/errors. Grammar, formatting, Checkstyle, PMD, SpotBugs and coverage checks pass. 11 new regression cases cover raw/typed CREATE and ALTER definitions, snapshots, input ownership, live child edits, visitor/deparser behavior, replacement, null/empty values, fluent builders and subclass construction. The constructor regression fails against the version that called an overridable setter. Additional cached PMD checks with default NPath/cyclomatic-complexity and field-placement thresholds: zero violations before and after in the changed production class. A local integration of all eight follow-ups (#2764–#2771), with overlapping ALTER edits resolved, passes the complete Java 17 Gradle check: 10,079 tests, 10,054 passed, 25 skipped, zero failures/errors. Replayed 882 previously DB-validated DDL fixtures against that integrated build: 875 pass with unchanged SQL output and reparsing; the same seven existing parse gaps remain. Nine statements intentionally expose raw ColumnOption nodes in the AST node-type set. No other result differences except generated grammar source locations; no fresh database execution. This is an independent follow-up to #2747, based on master (cdbaf1ad).

Open Graph Description: Purpose Give callers one predictable way to inspect and edit CREATE/ALTER column options. Today getColumnSpecs().add(...) changes SQL for raw specifications but silently edits a detached copy when ...

X Description: Purpose Give callers one predictable way to inspect and edit CREATE/ALTER column options. Today getColumnSpecs().add(...) changes SQL for raw specifications but silently edits a detached copy when ...

Opengraph URL: https://github.com/JSQLParser/JSqlParser/pull/2769

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:f67745b9-05fd-e553-8e96-4524c04657ba
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBD82:44B64:6C6A68:975379:6B048894
html-safe-nonce79b6f91e71e90f0ea4d7fb259374910fb606773d1c6f7446a945341def6b7c49
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDgyOjQ0QjY0OjZDNkE2ODo5NzUzNzk6NkIwNDg4OTQiLCJ2aXNpdG9yX2lkIjoiODI5MTU1NDkwMDY4NTY1NDE2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac54cfc9982060f386498200b7babcbb67c5cabe4bd28752a8a853fbbf733c8bd4
hovercard-subject-tagpull_request:4818176963
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/JSQLParser/JSqlParser/pull/2769/files
twitter:imagehttps://avatars.githubusercontent.com/u/55116920?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55116920?s=400&v=4
og:image:altPurpose Give callers one predictable way to inspect and edit CREATE/ALTER column options. Today getColumnSpecs().add(...) changes SQL for raw specifications but silently edits a detached copy when ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2769/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2769%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%2FJSQLParser%2FJSqlParser%2Fpull%2F2769%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=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2769/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2769/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2769/files
JSQLParserhttps://github.com/JSQLParser
JSqlParserhttps://github.com/JSQLParser/JSqlParser
Codehttps://github.com/JSQLParser/JSqlParser
Issues2 (2)https://github.com/JSQLParser/JSqlParser/issues
Pull requests2 (2)https://github.com/JSQLParser/JSqlParser/pulls
Discussionshttps://github.com/JSQLParser/JSqlParser/discussions
Actionshttps://github.com/JSQLParser/JSqlParser/actions
Projectshttps://github.com/JSQLParser/JSqlParser/projects
Wikihttps://github.com/JSQLParser/JSqlParser/wiki
Security and qualityhttps://github.com/JSQLParser/JSqlParser/security
Insightshttps://github.com/JSQLParser/JSqlParser/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
manticore-projectshttps://github.com/manticore-projects
JSQLParser:masterhttps://github.com/JSQLParser/JSqlParser/tree/master
minleejae:refactor/column-option-storage-20261011https://github.com/minleejae/JSqlParser/tree/refactor/column-option-storage-20261011
Conversation 0 https://github.com/JSQLParser/JSqlParser/pull/2769
Commits 1 https://github.com/JSQLParser/JSqlParser/pull/2769/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2769/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2769/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2769/files
Unify column option storage and mutation contracts https://github.com/JSQLParser/JSqlParser/pull/2769/files#top
Show all changes 1 commit https://github.com/JSQLParser/JSqlParser/pull/2769/files
98b80ea Unify column option storage and mutation contracts minleejae Oct 11, 2026 https://github.com/JSQLParser/JSqlParser/pull/2769/commits/98b80ea76f5d12b64d77c7967cb2439f686438b0
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2769/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2769/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2769/files
ColumnDefinition.java https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
JSqlParserCC.jjt https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
usage.rst https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
ColumnAttributeTest.java https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-2b160a53524c71f3afe712586df80e3dd3d549ef00404c73c31dbb8030eba0d4
ColumnDefaultExpressionTest.java https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-102ceb94a73c3abb7ff02181028780d4d773d784654b690718396e938daaad71
ColumnDefinitionStateTest.java https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-120120b7d0c8d41185fbf9277466d959e318169d40b4a23a29d78e0a299870fd
ColumnOptionMutationTest.java https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-2e83253e53f3d9516d49c99c53f389b0b40df1845be6566e38bac16fe87de4c1
PostgreSqlColumnTypeOptionsTest.java https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-a84e291709d18028aee610e62e8fb5bda053db6cbc019a6f87dfdf46ee602c6d
src/main/java/net/sf/jsqlparser/statement/create/table/ColumnDefinition.javahttps://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
View file https://github.com/minleejae/JSqlParser/blob/98b80ea76f5d12b64d77c7967cb2439f686438b0/src/main/java/net/sf/jsqlparser/statement/create/table/ColumnDefinition.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2769/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-7a533138e54adbf0baac5356d4b7d4a6d192300199ef50eede004f706fd35de3
src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjthttps://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
View file https://github.com/minleejae/JSqlParser/blob/98b80ea76f5d12b64d77c7967cb2439f686438b0/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2769/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
src/site/sphinx/usage.rsthttps://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
View file https://github.com/minleejae/JSqlParser/blob/98b80ea76f5d12b64d77c7967cb2439f686438b0/src/site/sphinx/usage.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2769/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
src/test/java/net/sf/jsqlparser/statement/create/ColumnAttributeTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-2b160a53524c71f3afe712586df80e3dd3d549ef00404c73c31dbb8030eba0d4
View file https://github.com/minleejae/JSqlParser/blob/98b80ea76f5d12b64d77c7967cb2439f686438b0/src/test/java/net/sf/jsqlparser/statement/create/ColumnAttributeTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2769/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-2b160a53524c71f3afe712586df80e3dd3d549ef00404c73c31dbb8030eba0d4
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-2b160a53524c71f3afe712586df80e3dd3d549ef00404c73c31dbb8030eba0d4
src/test/java/net/sf/jsqlparser/statement/create/ColumnDefaultExpressionTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-102ceb94a73c3abb7ff02181028780d4d773d784654b690718396e938daaad71
View file https://github.com/minleejae/JSqlParser/blob/98b80ea76f5d12b64d77c7967cb2439f686438b0/src/test/java/net/sf/jsqlparser/statement/create/ColumnDefaultExpressionTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2769/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-102ceb94a73c3abb7ff02181028780d4d773d784654b690718396e938daaad71
https://github.com/JSQLParser/JSqlParser/pull/2769/files#diff-102ceb94a73c3abb7ff02181028780d4d773d784654b690718396e938daaad71
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2769/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2769/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.