You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ChenLuyang (Jira)" <ji...@apache.org> on 2023/12/01 10:06:00 UTC
[jira] [Created] (CALCITE-6149) ClickHouseSqlDialect should support cast to Nullable
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)