Title: [BUG] JSQLParser 5.4-SNAPSHOT : ClickHouse : Parametric type Nullable(Decimal(p, s)) not supported as CAST target · Issue #2441 · JSQLParser/JSqlParser · GitHub
Open Graph Title: [BUG] JSQLParser 5.4-SNAPSHOT : ClickHouse : Parametric type Nullable(Decimal(p, s)) not supported as CAST target · Issue #2441 · JSQLParser/JSqlParser
X Title: [BUG] JSQLParser 5.4-SNAPSHOT : ClickHouse : Parametric type Nullable(Decimal(p, s)) not supported as CAST target · Issue #2441 · JSQLParser/JSqlParser
Description: Failing SQL Feature ClickHouse supports parametric (constructor-style) data types as the target of a CAST, including nested ones such as Nullable(Decimal(10, 2)). Here Decimal(10, 2) declares a decimal with precision 10 and scale 2, and ...
Open Graph Description: Failing SQL Feature ClickHouse supports parametric (constructor-style) data types as the target of a CAST, including nested ones such as Nullable(Decimal(10, 2)). Here Decimal(10, 2) declares a dec...
X Description: Failing SQL Feature ClickHouse supports parametric (constructor-style) data types as the target of a CAST, including nested ones such as Nullable(Decimal(10, 2)). Here Decimal(10, 2) declares a dec...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2441
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] JSQLParser 5.4-SNAPSHOT : ClickHouse : Parametric type Nullable(Decimal(p, s)) not supported as CAST target","articleBody":" ## Failing SQL Feature\n\n ClickHouse supports parametric (constructor-style) data types as the target of a `CAST`, including nested ones such as `Nullable(Decimal(10, 2))`. Here `Decimal(10, 2)` declares a decimal with precision 10 and scale 2, and `Nullable(...)` wraps it so the column can also hold NULL. JSQLParser fails to parse this type expression when it is used as the target type of a `CAST(... AS ...)`.\n\n See the ClickHouse docs:\n - https://clickhouse.com/docs/en/sql-reference/data-types/nullable\n - https://clickhouse.com/docs/en/sql-reference/data-types/decimal\n\n ## Full SQL Example\n \n ```\nCREATE TABLE cast_demo (id UInt32, x Float64) ENGINE = MergeTree ORDER BY id;\n INSERT INTO cast_demo (id, x) VALUES (1, 10.5), (2, 3.14159), (3, 1234567.891), (4, 0);\n SELECT CAST(x AS Nullable(Decimal(10, 2))) FROM cast_demo;\n```\n\n ## Parsing Error\n\n```\nParseException: Encountered: \u003cOPENING_BRACKET\u003e / \"(\", at line 3, column 25, in lexical state DEFAULT.\nWas expecting one of these terminals within expansion starting at 9127:5:\n \u003cK_FORMAT\u003e (inside 9125:5) ...\n \u003cCLOSING_BRACKET\u003e (inside 9127:5) \n```\n\nTested with ClickHouse version: 25.8","author":{"url":"https://github.com/tomershay","@type":"Person","name":"tomershay"},"datePublished":"2026-07-12T13:26:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2441/JSqlParser/issues/2441"}
| 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:52f423b8-331b-2599-7202-48940693faa4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B95C:20569A:452680:634AFB:6A636D6D |
| html-safe-nonce | 8bf6dd18ad82efa5f94fbdca7e06688f7847795dc5901fe85abb2a259ae09b33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTVDOjIwNTY5QTo0NTI2ODA6NjM0QUZCOjZBNjM2RDZEIiwidmlzaXRvcl9pZCI6IjYyNjkyODk1NzI0OTEwMjk4NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e88eefa711b582c056883c030aaec027ffb9dcd9728ebabe61452612e1267d31 |
| hovercard-subject-tag | issue:4867209017 |
| 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/2441/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0e9795a9f936fed8d91a803808fd021180d115d7239d49bfe8e23a1680c9c81/JSQLParser/JSqlParser/issues/2441 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0e9795a9f936fed8d91a803808fd021180d115d7239d49bfe8e23a1680c9c81/JSQLParser/JSqlParser/issues/2441 |
| og:image:alt | Failing SQL Feature ClickHouse supports parametric (constructor-style) data types as the target of a CAST, including nested ones such as Nullable(Decimal(10, 2)). Here Decimal(10, 2) declares a dec... |
| 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 | e7b5617850fbcd6d10fe2b7c56398444bccb5f3a58a4a18c6d363971295bcd03 |
| 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 | aa341b3f432dc63fa9633042725aec601722a352 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width