Title: [BUG] JSQLParser 5.4-SNAPSHOT : Clickhouse : ORDER BY after CREATE TABLE unsupported · Issue #2353 · JSQLParser/JSqlParser · GitHub
Open Graph Title: [BUG] JSQLParser 5.4-SNAPSHOT : Clickhouse : ORDER BY after CREATE TABLE unsupported · Issue #2353 · JSQLParser/JSqlParser
X Title: [BUG] JSQLParser 5.4-SNAPSHOT : Clickhouse : ORDER BY after CREATE TABLE unsupported · Issue #2353 · JSQLParser/JSqlParser
Description: The parser doesn't support an ORDER BY statement after a CREATE TABLE, which is usually used to define the physical sort order of the table. This capability is supported in latest Clickhouse. Sample query: CREATE TABLE metrics ( event_da...
Open Graph Description: The parser doesn't support an ORDER BY statement after a CREATE TABLE, which is usually used to define the physical sort order of the table. This capability is supported in latest Clickhouse. Sampl...
X Description: The parser doesn't support an ORDER BY statement after a CREATE TABLE, which is usually used to define the physical sort order of the table. This capability is supported in latest Clickhouse. S...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2353
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] JSQLParser 5.4-SNAPSHOT : Clickhouse : ORDER BY after CREATE TABLE unsupported","articleBody":"The parser doesn't support an `ORDER BY` statement after a `CREATE TABLE`, which is usually used to define the physical sort order of the table.\n\nThis capability is [supported](https://clickhouse.com/docs/sql-reference/statements/create/table) in latest Clickhouse.\n\nSample query:\n\n```\nCREATE TABLE metrics (\n event_date Date,\n user_id UInt64,\n value Float64\n) ENGINE = MergeTree()\nORDER BY (event_date, user_id);\n\n```\n\nError: `ParseException: Encountered: \u003cK_ORDER\u003e / \"ORDER\", at line 6, column 1, in lexical`","author":{"url":"https://github.com/tomershay","@type":"Person","name":"tomershay"},"datePublished":"2025-12-12T12:54:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2353/JSqlParser/issues/2353"}
| 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:f9731f9f-d86d-85f8-ef7d-becda4a32897 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 977E:AC611:95BEEC:C8BED6:69648D53 |
| html-safe-nonce | 16a24c8758d16e31095395e65ef37a7fb3b5475ebf9b6804538bea1471509b32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzdFOkFDNjExOjk1QkVFQzpDOEJFRDY6Njk2NDhENTMiLCJ2aXNpdG9yX2lkIjoiNzY3NDcxMzIzMDkxMDE5NzA3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bade0ec5ba8884483117ec26f91fb9d2a37df371b85cf4ce6efa24151820342b |
| hovercard-subject-tag | issue:3723326921 |
| 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/2353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4237566cc65fc53655e6120d59d392c4dc09515f5d3737863612be72c9afb27b/JSQLParser/JSqlParser/issues/2353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4237566cc65fc53655e6120d59d392c4dc09515f5d3737863612be72c9afb27b/JSQLParser/JSqlParser/issues/2353 |
| og:image:alt | The parser doesn't support an ORDER BY statement after a CREATE TABLE, which is usually used to define the physical sort order of the table. This capability is supported in latest Clickhouse. Sampl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomershay |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| 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 | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width