[ 
https://issues.apache.org/jira/browse/CALCITE-7292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhen Chen resolved CALCITE-7292.
--------------------------------
    Fix Version/s: 1.42.0
       Resolution: Fixed

Fixed in 
[https://github.com/apache/calcite/commit/7bebc878de653ea49d295279efb13db2e8642a55]

Thanks for contribution [~thomas.rebele] 

> Replace "case when true then deptno else null end" with a non-simplifiable 
> expression
> -------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7292
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7292
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Thomas Rebele
>            Assignee: Thomas Rebele
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> Some tests rely on the expression
> {{case when true then deptno else null end}}
> to obtain a nullable expression. However, the expression can be simplified to 
> {{{}deptno{}}}, and deptno is a {{{}TINYINT NOT NULL{}}}. Replacing the 
> expression with
> {{case when deptno>0 then deptno else null end}}
> ensures that the expression cannot be simplified.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to