René's URL Explorer Experiment


Title: fix: accept trailing comma in from list by harryfoster2006 · Pull Request #2948 · JSQLParser/JSqlParser · GitHub

Open Graph Title: fix: accept trailing comma in from list by harryfoster2006 · Pull Request #2948 · JSQLParser/JSqlParser

X Title: fix: accept trailing comma in from list by harryfoster2006 · Pull Request #2948 · JSQLParser/JSqlParser

Description: Snowflake accepts a trailing comma after the last table of a comma-separated FROM list. This isn't in the Snowflake documentation, but running these by hand on Snowflake works and we have seen real cases: SELECT o.order_id, c.customer_name, FROM orders o, customers c, WHERE o.customer_id = c.customer_id; SELECT 1 FROM (SELECT 1 AS a) UG, (SELECT 1 AS b) G, WHERE UG.a = G.b Current behaviour: JSqlParser already accepts the select-list comma but fails on the , before WHERE. Fix PlainSelect now takes one optional , after FromItem, LateralViews and JoinsList, for both FROM and FROM ONLY. Scope: a new semantic lookahead, isTrailingFromItemCommaAhead(), only matches when the next token is , and the one after it is WHERE, so it doesn't change how any other comma is parsed. Result: the comma is dropped rather than kept as an empty join. SELECT * FROM a, b, WHERE 1 = 1 has a single join b and deparses to SELECT * FROM a, b WHERE 1 = 1 SELECT * FROM a, WHERE 1 = 1 has no joins at all Tests: a single table, several tables, and a mix of explicit joins and comma joins FROM ONLY the comma inside a subquery, a CTE and an IN (SELECT ...) parse failures for a trailing comma before GROUP BY, before ORDER BY, at the end of the statement, or doubled (, , WHERE)

Open Graph Description: Snowflake accepts a trailing comma after the last table of a comma-separated FROM list. This isn't in the Snowflake documentation, but running these by hand on Snowflake works and we have seen ...

X Description: Snowflake accepts a trailing comma after the last table of a comma-separated FROM list. This isn't in the Snowflake documentation, but running these by hand on Snowflake works and we have s...

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

X: @github

direct link

Domain: redirect.github.com

IPv4 address: 140.82.113.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:006a784b-099c-72b3-3fb4-8336f2c90538
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7F2:2A3275:88A1A7:C04124:6B045255
html-safe-nonce6df43b2167f07285bdce06f697e143b84e3d5795bf0c52f5817fb5bb8a0f924d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0YyOjJBMzI3NTo4OEExQTc6QzA0MTI0OjZCMDQ1MjU1IiwidmlzaXRvcl9pZCI6IjExMDI4MTcxODI0MzEzMzQ5OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac038008b4436378b38c994020d0d3b51dd6afd0dad8a96b5d9cecc6a81338207b
hovercard-subject-tagpull_request:5417658236
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/2948/files
twitter:imagehttps://avatars.githubusercontent.com/u/307069853?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/307069853?s=400&v=4
og:image:altSnowflake accepts a trailing comma after the last table of a comma-separated FROM list. This isn't in the Snowflake documentation, but running these by hand on Snowflake works and we have seen ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
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
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2948%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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2948%2Ffiles
Sign uphttps://redirect.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://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
Reloadhttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
Reloadhttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
JSQLParserhttps://redirect.github.com/JSQLParser
JSqlParserhttps://redirect.github.com/JSQLParser/JSqlParser
Codehttps://redirect.github.com/JSQLParser/JSqlParser
Issues2 (2)https://redirect.github.com/JSQLParser/JSqlParser/issues
Pull requests2 (2)https://redirect.github.com/JSQLParser/JSqlParser/pulls
Discussionshttps://redirect.github.com/JSQLParser/JSqlParser/discussions
Actionshttps://redirect.github.com/JSQLParser/JSqlParser/actions
Projectshttps://redirect.github.com/JSQLParser/JSqlParser/projects
Wikihttps://redirect.github.com/JSQLParser/JSqlParser/wiki
Security and qualityhttps://redirect.github.com/JSQLParser/JSqlParser/security
Insightshttps://redirect.github.com/JSQLParser/JSqlParser/insights
Sign up for GitHub https://redirect.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://redirect.github.com/login?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
manticore-projectshttps://redirect.github.com/manticore-projects
JSQLParser:masterhttps://redirect.github.com/JSQLParser/JSqlParser/tree/master
harryfoster2006:fix/trailing-comma-from-list-before-wherehttps://redirect.github.com/harryfoster2006/JSqlParser/tree/fix/trailing-comma-from-list-before-where
Conversation 7 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948
Commits 4 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/commits
Checks 10 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/checks
Files changed https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
Please reload this pagehttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
fix: accept trailing comma in from list https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#top
Show all changes 4 commits https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
539bbeb fix: accept trailing comma in from list harryfoster2006 Nov 20, 2026 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/commits/539bbebcbc6eb45abce49f4d51c6ba8c58ba1ae7
b591dd1 fix: guarded on dialect and parameterised tests harryfoster2006 Nov 21, 2026 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/commits/b591dd102037aac984b399324b2a9567e7c6a207
8aec7ec Merge branch 'master' into fix/trailing-comma-from-list-before-where harryfoster2006 Nov 21, 2026 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/commits/8aec7ecf3deadf2130e0dd4a704117bee8cfa55a
84987e7 chore: formatting and merge dropping the closing brace harryfoster2006 Nov 21, 2026 https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/commits/84987e7158b1d2033d2c65b825085f8170787514
Clear filters https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
Please reload this pagehttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
Please reload this pagehttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files
JSqlParserCC.jjt https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
SelectTest.java https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjthttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
View file https://redirect.github.com/harryfoster2006/JSqlParser/blob/84987e7158b1d2033d2c65b825085f8170787514/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/{{ revealButtonHref }}
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
src/test/java/net/sf/jsqlparser/statement/select/SelectTest.javahttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
View file https://redirect.github.com/harryfoster2006/JSqlParser/blob/84987e7158b1d2033d2c65b825085f8170787514/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/{{ revealButtonHref }}
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://redirect.github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
Please reload this pagehttps://redirect.github.com/JSQLParser/JSqlParser/pull/2948/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.