You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2026/05/22 09:04:00 UTC

[jira] [Updated] (CALCITE-7292) Replace "case when true then deptno else null end" with a non-simplifiable expression in RelOptRulesTest

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

Stamatis Zampetakis updated CALCITE-7292:
-----------------------------------------
    Summary: Replace "case when true then deptno else null end" with a non-simplifiable expression in RelOptRulesTest  (was: Replace "case when true then deptno else null end" with a non-simplifiable expression)

> Replace "case when true then deptno else null end" with a non-simplifiable expression in RelOptRulesTest
> --------------------------------------------------------------------------------------------------------
>
>                 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)