[
https://issues.apache.org/jira/browse/CALCITE-7292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082814#comment-18082814
]
Stamatis Zampetakis commented on CALCITE-7292:
----------------------------------------------
This is a test only change so amended a bit the summary to better reflect that
it doesn't involve prod code.
> 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)