[
https://issues.apache.org/jira/browse/CALCITE-6091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yu Xu resolved CALCITE-6091.
----------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/2311114e3be8a0c3e804974ad39f1c789d9aecb4]
Thank you reported this Jira [~jiajunbernoulli]
Thank you for the review [~mbudiu]
> 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: Yu Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> {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
(v10.3.26#10030026)