Title: [BUG] exists, sample and extend cannot be used as unquoted identifiers · Issue #2772 · JSQLParser/JSqlParser · GitHub
Open Graph Title: [BUG] exists, sample and extend cannot be used as unquoted identifiers · Issue #2772 · JSQLParser/JSqlParser
X Title: [BUG] exists, sample and extend cannot be used as unquoted identifiers · Issue #2772 · JSQLParser/JSqlParser
Description: JSqlParser version: master 8d12a5d7a (5.5-SNAPSHOT); extend has failed since 5.2, exists and sample have failed since these tokens were reserved. RDBMS: all. The following statements fail on master although all three words are non-reserv...
Open Graph Description: JSqlParser version: master 8d12a5d7a (5.5-SNAPSHOT); extend has failed since 5.2, exists and sample have failed since these tokens were reserved. RDBMS: all. The following statements fail on master...
X Description: JSqlParser version: master 8d12a5d7a (5.5-SNAPSHOT); extend has failed since 5.2, exists and sample have failed since these tokens were reserved. RDBMS: all. The following statements fail on master...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2772
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] exists, sample and extend cannot be used as unquoted identifiers","articleBody":"**JSqlParser version**: master `8d12a5d7a` (5.5-SNAPSHOT); `extend` has failed since 5.2, `exists` and `sample` have failed since these tokens were reserved. **RDBMS**: all.\n\nThe following statements fail on master although all three words are non-reserved in the common dialects:\n\n```sql\nSELECT tb_name, exists FROM entity ORDER BY exists;\nSELECT * FROM sample;\nUPDATE t SET extend = 'x' WHERE id = 1;\n```\n\nThey reach JSqlParser through downstream SQL rewriting tools (baomidou/mybatis-plus#7029, #5956, #6504, #6871), where users cannot rename their columns or tables.\n\nRoot cause: `K_EXISTS`, `K_SAMPLE` and `K_EXTEND` are reserved tokens for specific operator positions (the `EXISTS` predicate and JSON_TABLE flag, Vertica table sampling, ksqDB pipe operators) but were never added to the reserved-keyword-as-identifier alternatives of `RelObjectName()`, unlike earlier dual-use keywords such as `EXTENDED` (#1525) or `GROUPS` (#2473).\n\nA PR follows.\n","author":{"url":"https://github.com/fudianchn","@type":"Person","name":"fudianchn"},"datePublished":"2026-10-11T11:56:04Z","url":"https://github.com/JSQLParser/JSqlParser/issues/2772"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:53b98e81-4bbe-9b4c-66d3-12131f39cb2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99C8:1514D:B6F0EF:F9E62E:6B0489EC |
| html-safe-nonce | 0ddaf061ad57b11f073862a3c632759d5964606b34e7e62a61575e6cadae630f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUM4OjE1MTREOkI2RjBFRjpGOUU2MkU6NkIwNDg5RUMiLCJ2aXNpdG9yX2lkIjoiNjE0NTk3OTA5ODYzMzM3NDE4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 87f23812cbe55502bd4227faecae58bfffdfa339e971685c57c54bf1b679d8ab |
| hovercard-subject-tag | issue:5800821166 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/2772/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d23ac58d49965beac0059cea31daae4284b5d358c6d4ea35603538cb6acec31/JSQLParser/JSqlParser/issues/2772 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d23ac58d49965beac0059cea31daae4284b5d358c6d4ea35603538cb6acec31/JSQLParser/JSqlParser/issues/2772 |
| og:image:alt | JSqlParser version: master 8d12a5d7a (5.5-SNAPSHOT); extend has failed since 5.2, exists and sample have failed since these tokens were reserved. RDBMS: all. The following statements fail on master... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fudianchn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width