ChenLuyang created CALCITE-6149:
-----------------------------------
Summary: ClickHouseSqlDialect should support cast to Nullable
Key: CALCITE-6149
URL: https://issues.apache.org/jira/browse/CALCITE-6149
Project: Calcite
Issue Type: Improvement
Components: core
Affects Versions: 1.36.0
Reporter: ChenLuyang
In ClickHouse, there is an issue with RelDataType of Nullable type when casting
to a non-Nullable type. For example, {{SELECT CAST(NULL, 'Int32')}} will throw
an error. In such cases, we should use {{SELECT CAST(NULL, 'Nullable(Int32)')}}
instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)