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:6d1992e8-ad1f-fbeb-fbeb-ad9fc2a81eeb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D67C:83A89:102FD01:15EEA12:6A62D72E |
| html-safe-nonce | 61055c33f95fa5e5b15ba93d9285a50f8d6a91fa952f828ab6a5d391c6a1f29f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjdDOjgzQTg5OjEwMkZEMDE6MTVFRUExMjo2QTYyRDcyRSIsInZpc2l0b3JfaWQiOiIxNDU1NjM1NDMxMzg4NTM0NTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b8d0da40752da107c39c60be597744996ef6fe41a75725ae90af3c114283963c |
| 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 | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width