You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jiajun Xie (Jira)" <ji...@apache.org> on 2023/11/04 05:44:00 UTC
[jira] [Updated] (CALCITE-6091) Char that in array or map is truncated if CASE WHEN statement contains null
[ https://issues.apache.org/jira/browse/CALCITE-6091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiajun Xie updated CALCITE-6091:
--------------------------------
Summary: Char that in array or map is truncated if CASE WHEN statement contains null (was: Char that in array or map is truncated in CASE WHEN statement)
> Char that in array or map is truncated if CASE WHEN statement contains null
> ---------------------------------------------------------------------------
>
> Key: CALCITE-6091
> URL: https://issues.apache.org/jira/browse/CALCITE-6091
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Jiajun Xie
> Assignee: Jiajun Xie
> Priority: Major
> Labels: pull-request-available
>
> {code:java}
> select case when true then array('abc')
> when false then array('d')
> else null -- Perhaps it will be omitted
> end as c {code}
> The sql result type is {*}CHAR(1) ARRAY{*}.
> If we use the {*}CHAR(1) ARRAY{*}, *array('abc')* will be truncated.
> > Map has same issue.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)