René's URL Explorer Experiment


Title: fix: report ALTER TABLE actions that delete rows as MODIFIES_DATA by tanjiroK-coder · Pull Request #2894 · JSQLParser/JSqlParser · GitHub

Open Graph Title: fix: report ALTER TABLE actions that delete rows as MODIFIES_DATA by tanjiroK-coder · Pull Request #2894 · JSQLParser/JSqlParser

X Title: fix: report ALTER TABLE actions that delete rows as MODIFIES_DATA by tanjiroK-coder · Pull Request #2894 · JSQLParser/JSqlParser

Description: ALTER TABLE t TRUNCATE PARTITION ALL passes the mayModifyData() read-only guard StatementFeatureVisitor.visit(Alter) returned schema-only for every ALTER TABLE, whatever its actions. TRUNCATE and DROP carry MODIFIES_DATA so that the guard in the docs, if (connection.isReadOnly() && features.mayModifyData()), still stops them (see destructiveDdlAlsoModifiesData), but the ALTER TABLE actions that destroy rows did not: ALTER TABLE t TRUNCATE PARTITION ALL empties a partitioned MySQL table and reported certain=[MODIFIES_SCHEMA], and so did DROP PARTITION, EXCHANGE PARTITION (it swaps the rows of the partition and the other table) and DISCARD / IMPORT TABLESPACE (they delete or replace the table's data file). An action the grammar does not model is kept as raw tokens under AlterOperation.UNSPECIFIC, so ClickHouse's ALTER TABLE t DELETE WHERE 1 = 1 and ALTER TABLE t UPDATE c = 0 WHERE 1 = 1 also gave mayModifyData() == false. Those partition and tablespace actions now report MODIFIES_DATA as certain, REPAIR PARTITION reports it as possible like REPAIR TABLE does, and an unmodelled action reports it as possible with the unsupported marker, the way an UnsupportedStatement or a CREATE FUNCTION body is treated. Of the 571 ALTER TABLE literals in the test suite, 17 now report MODIFIES_DATA as certain, 39 as possible (35 of them unmodelled actions such as PostgreSQL OWNER TO, SET LOGGED or ENABLE TRIGGER, an over-report on statements that already modify the schema) and 515 are unchanged, so is(..) changes for those 17 only. The 12 new StatementFeatureVisitorTest cases fail before and pass after; ./gradlew check (12439 tests) and mvn verify (12421 tests) pass.

Open Graph Description: ALTER TABLE t TRUNCATE PARTITION ALL passes the mayModifyData() read-only guard StatementFeatureVisitor.visit(Alter) returned schema-only for every ALTER TABLE, whatever its actions. TRUNCATE and D...

X Description: ALTER TABLE t TRUNCATE PARTITION ALL passes the mayModifyData() read-only guard StatementFeatureVisitor.visit(Alter) returned schema-only for every ALTER TABLE, whatever its actions. TRUNCATE and D...

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

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:676238b8-c2cb-2dd1-2226-c42749114b38
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD538:29C09E:E22C70:13DF317:6B04433C
html-safe-nonce20cbfe021e5cf369029bf5b3016cdbf0d72b542f54f5bbf44694ba9f97058ec1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM4OjI5QzA5RTpFMjJDNzA6MTNERjMxNzo2QjA0NDMzQyIsInZpc2l0b3JfaWQiOiI4NDYxMjM1NDgyMTU4OTczNzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacde320fc1bea5c05fca30745aca9b21f7cdc3857ee728975163e3c9d9bb3f2ecc
hovercard-subject-tagpull_request:5152436567
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/2894/files
twitter:imagehttps://avatars.githubusercontent.com/u/294423647?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/294423647?s=400&v=4
og:image:altALTER TABLE t TRUNCATE PARTITION ALL passes the mayModifyData() read-only guard StatementFeatureVisitor.visit(Alter) returned schema-only for every ALTER TABLE, whatever its actions. TRUNCATE and D...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2894/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2894%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%2F2894%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/2894/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2894/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2894/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
tanjiroK-coder:alter-table-modifies-datahttps://github.com/tanjiroK-coder/JSqlParser/tree/alter-table-modifies-data
Conversation 1 https://github.com/JSQLParser/JSqlParser/pull/2894
Commits 1 https://github.com/JSQLParser/JSqlParser/pull/2894/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2894/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2894/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2894/files
fix: report ALTER TABLE actions that delete rows as MODIFIES_DATA https://github.com/JSQLParser/JSqlParser/pull/2894/files#top
Show all changes 1 commit https://github.com/JSQLParser/JSqlParser/pull/2894/files
593efb0 fix: report ALTER TABLE actions that delete rows as MODIFIES_DATA tanjiroK-coder Nov 3, 2026 https://github.com/JSQLParser/JSqlParser/pull/2894/commits/593efb0a150c047de40c3f3ac22a654087c1c006
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2894/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2894/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2894/files
StatementFeatureVisitor.java https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
usage.rst https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
StatementFeatureVisitorTest.java https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-582ea4322cf253e7c8e7eb918c685113c579c025b3b655132490ef2a6d713629
src/main/java/net/sf/jsqlparser/statement/StatementFeatureVisitor.javahttps://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
View file https://github.com/tanjiroK-coder/JSqlParser/blob/593efb0a150c047de40c3f3ac22a654087c1c006/src/main/java/net/sf/jsqlparser/statement/StatementFeatureVisitor.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2894/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-c1b8b39dcc5fbcce75b91f6a4ffd69bc79acc351fdd59b8c3eed531329342581
src/site/sphinx/usage.rsthttps://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
View file https://github.com/tanjiroK-coder/JSqlParser/blob/593efb0a150c047de40c3f3ac22a654087c1c006/src/site/sphinx/usage.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2894/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
src/test/java/net/sf/jsqlparser/statement/StatementFeatureVisitorTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-582ea4322cf253e7c8e7eb918c685113c579c025b3b655132490ef2a6d713629
View file https://github.com/tanjiroK-coder/JSqlParser/blob/593efb0a150c047de40c3f3ac22a654087c1c006/src/test/java/net/sf/jsqlparser/statement/StatementFeatureVisitorTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2894/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-582ea4322cf253e7c8e7eb918c685113c579c025b3b655132490ef2a6d713629
https://github.com/JSQLParser/JSqlParser/pull/2894/files#diff-582ea4322cf253e7c8e7eb918c685113c579c025b3b655132490ef2a6d713629
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2894/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.