[
https://issues.apache.org/jira/browse/CALCITE-7046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956232#comment-17956232
]
xiong duan commented on CALCITE-7046:
-------------------------------------
I made a mistake. The result of Calcite is correct. I will close this issue.
> 'CASE a WHEN null THEN 1 ELSE b END' should return 1 when a is null
> -------------------------------------------------------------------
>
> Key: CALCITE-7046
> URL: https://issues.apache.org/jira/browse/CALCITE-7046
> Project: Calcite
> Issue Type: Bug
> Reporter: xiong duan
> Priority: Major
>
> The SQL in dummy.iq:
> {code:java}
> select *,case deptno when null then 1 else deptno + 2 end from emp where
> ename='Wilma';
> ENAME, DEPTNO, GENDER, EXPR$3
> Wilma, null, F, null{code}
> The column EXPR$3 value should be 1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)