René's URL Explorer Experiment


Title: fix: traverse missing query and DML children in TablesNamesFinder by fudianchn · Pull Request #2749 · JSQLParser/JSqlParser · GitHub

Open Graph Title: fix: traverse missing query and DML children in TablesNamesFinder by fudianchn · Pull Request #2749 · JSQLParser/JSqlParser

X Title: fix: traverse missing query and DML children in TablesNamesFinder by fudianchn · Pull Request #2749 · JSQLParser/JSqlParser

Description: AI disclosure: this change was prepared with AI coding agents, reviewed and revised line by line by me. What TablesNamesFinder now visits omitted array subscripts, named function arguments, analytic partitions, initial piped-query joins and lateral views, UPSERT duplicate actions, IF conditions and OUTPUT destinations. MERGE uses the existing OUTPUT traversal shared by INSERT, UPDATE and DELETE. Why SELECT a[(SELECT max(x) FROM t2)] FROM t1 returns only t1 on the base commit instead of t1 and t2. Array slices such as a[OFFSET(1):2] can throw a NullPointerException during table extraction. How Reuse the existing expression-list, join and insert-action helpers to visit the omitted child fields. Check the array index before visiting it, independently of either slice bound. Keep column-processing rules, table-variable handling and existing window traversal. Add the missing MERGE call to the shared OUTPUT visitor. Add regression tests for all public entry paths, adjacent DML consumers, array bounds, finder reuse and visit counts. Root cause Several visitor overrides omit already-parsed child fields. ArrayExpression checks the start bound before dereferencing the single index, which skips ordinary subscripts and dereferences a null index for slices. Testing TablesNamesFinderTraversalTest adds 65 cases. On base bb55bb9d, 39 fail and 26 normal controls pass; the fix passes all 65. Static, instance, expression and other-source entry points are covered. Four isolated mutations are rejected by the tests. JDK 17: both Finder test classes pass, 171 cases total. Full ./gradlew check passes with 9467 cases, zero failures/errors and 25 skipped; mvn clean verify passes with 9449 cases, zero failures/errors and 25 skipped. Formatting, Checkstyle, PMD, SpotBugs, grammar ambiguity, applicable coverage and changed-file license checks pass. Project JMH JSQLParserBenchmark.parseSQLStatements, unchanged 54-statement corpus, version=latest: interleaved baseline/fixed, 3 forks per state, 2 one-second warmups and 5 one-second measurements per fork. Baseline 27.875 ms/op, 99.9% CI [21.312,34.438]; fixed 27.890 ms/op, CI [21.270,34.510], 15 samples per state. The intervals overlap. This parsing benchmark does not exercise TablesNamesFinder. No database-server validation, Finder-specific performance measurement or Windows/macOS local test matrix was run. Behavior notes Returned table sets include names previously omitted. User variables and inserted/deleted pseudo-tables keep their existing statement-entry handling. No grammar or public API changes are required. Slice tests assert index=null and both bound expressions present. Bare f()[1:2] retains its JsonExpression index reading as a normal control; this change does not fix JSON-path grammar or traversal. Existing WITH visitation and expression-entry column-qualification rules remain outside this change. Node-count assertions guard the newly visited fields without promising identity deduplication for arbitrary manually constructed AST graphs. Verification of the original issue No existing issue is linked. The failures were reproduced on upstream master bb55bb9de8377de9880b14e4fe3b3cc94bf63498; the fixed commit is 8f7de28c5a72316ac72d41acf74211f1d34e8dba. This builds on #2479, #2517 and #2538, covering child fields that those changes did not address. SELECT a[(SELECT max(x) FROM t2)] FROM t1; SELECT f()[(SELECT max(x) FROM t2)] FROM t1; SELECT a[OFFSET(1):2] FROM t1; The first two return t1 and t2 with the fix. The slice returns t1 without throwing. The same families are tested through statement and expression entry points.

Open Graph Description: AI disclosure: this change was prepared with AI coding agents, reviewed and revised line by line by me. What TablesNamesFinder now visits omitted array subscripts, named function arguments, analyti...

X Description: AI disclosure: this change was prepared with AI coding agents, reviewed and revised line by line by me. What TablesNamesFinder now visits omitted array subscripts, named function arguments, analyti...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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:79f5f6aa-c1d4-4ba6-c9cd-d6685d9462df
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB84:25D334:22B826:2E6380:6B049952
html-safe-noncebab8a69e3b48d852043e8a38ad85f06008b0d9d191a54931bc84d403a270e236
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjg0OjI1RDMzNDoyMkI4MjY6MkU2MzgwOjZCMDQ5OTUyIiwidmlzaXRvcl9pZCI6IjMwNjgyNzA1NTE1MzQ3MDQ5NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd0dc327b98d5161f28cd4506d61286721a35b4fd3882ffc3b0c8e4c52a5ad379
hovercard-subject-tagpull_request:4712826804
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/2749/files
twitter:imagehttps://avatars.githubusercontent.com/u/40510713?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40510713?s=400&v=4
og:image:altAI disclosure: this change was prepared with AI coding agents, reviewed and revised line by line by me. What TablesNamesFinder now visits omitted array subscripts, named function arguments, analyti...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d
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
release3fd14143b75b2af7b76bbd23b069867d091adfcc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2749/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2749%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%2F2749%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/2749/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2749/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2749/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
fudianchn:fix/tables-names-finder-child-traversalhttps://github.com/fudianchn/JSqlParser/tree/fix/tables-names-finder-child-traversal
Conversation 1 https://github.com/JSQLParser/JSqlParser/pull/2749
Commits 1 https://github.com/JSQLParser/JSqlParser/pull/2749/commits
Checks 19 https://github.com/JSQLParser/JSqlParser/pull/2749/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2749/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2749/files
fix: traverse missing query and DML children in TablesNamesFinder https://github.com/JSQLParser/JSqlParser/pull/2749/files#top
Show all changes 1 commit https://github.com/JSQLParser/JSqlParser/pull/2749/files
8f7de28 fix: traverse missing query and DML children in TablesNamesFinder fudianchn Oct 2, 2026 https://github.com/JSQLParser/JSqlParser/pull/2749/commits/8f7de28c5a72316ac72d41acf74211f1d34e8dba
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2749/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2749/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2749/files
TablesNamesFinder.java https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
TablesNamesFinderTraversalTest.java https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-f40cdafbff2acf49f7688d1d768c00830a5ec3e71bb4faa1b2df221d7472c485
src/main/java/net/sf/jsqlparser/util/TablesNamesFinder.javahttps://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
View file https://github.com/fudianchn/JSqlParser/blob/8f7de28c5a72316ac72d41acf74211f1d34e8dba/src/main/java/net/sf/jsqlparser/util/TablesNamesFinder.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2749/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
https://github.com/JSQLParser/JSqlParser/pull/2749/files#diff-316573d4de546d1d0655f069706d16ecd347aad823e413ec72652511badf2294
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2749/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2749/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.