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: github.com

IPv4 address: 140.82.112.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:fe0cc106-4212-7dbe-b104-a1c8b7faa99d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id89EE:1CAB40:E3C055:13EC2AF:6B044341
html-safe-nonce32ac450e368fb3f92b1d7a1df7f4893522d9494c9ab510f38f9dbf3cd0832b74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUVFOjFDQUI0MDpFM0MwNTU6MTNFQzJBRjo2QjA0NDM0MSIsInZpc2l0b3JfaWQiOiIzOTM2Mzg5ODU4NDYwOTc1OTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3bba865376a9bef840508b6bb59d1b96db5430cd998c5422f26060f43b0012c0
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
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/2948/files#start-of-content
https://github.com/
Sign inhttps://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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2948%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/2948/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2948/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2948/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
harryfoster2006:fix/trailing-comma-from-list-before-wherehttps://github.com/harryfoster2006/JSqlParser/tree/fix/trailing-comma-from-list-before-where
Conversation 7 https://github.com/JSQLParser/JSqlParser/pull/2948
Commits 4 https://github.com/JSQLParser/JSqlParser/pull/2948/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2948/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2948/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2948/files
fix: accept trailing comma in from list https://github.com/JSQLParser/JSqlParser/pull/2948/files#top
Show all changes 4 commits https://github.com/JSQLParser/JSqlParser/pull/2948/files
539bbeb fix: accept trailing comma in from list harryfoster2006 Nov 20, 2026 https://github.com/JSQLParser/JSqlParser/pull/2948/commits/539bbebcbc6eb45abce49f4d51c6ba8c58ba1ae7
b591dd1 fix: guarded on dialect and parameterised tests harryfoster2006 Nov 21, 2026 https://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://github.com/JSQLParser/JSqlParser/pull/2948/commits/8aec7ecf3deadf2130e0dd4a704117bee8cfa55a
84987e7 chore: formatting and merge dropping the closing brace harryfoster2006 Nov 21, 2026 https://github.com/JSQLParser/JSqlParser/pull/2948/commits/84987e7158b1d2033d2c65b825085f8170787514
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2948/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2948/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2948/files
JSqlParserCC.jjt https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
SelectTest.java https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjthttps://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
View file https://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://github.com/JSQLParser/JSqlParser/pull/2948/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
src/test/java/net/sf/jsqlparser/statement/select/SelectTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
View file https://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://github.com/JSQLParser/JSqlParser/pull/2948/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
https://github.com/JSQLParser/JSqlParser/pull/2948/files#diff-700b813f07fa936eb137d812287a7c30f4e62a71f3b08d46a21e5c717d7339b8
Please reload this pagehttps://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.