[
https://issues.apache.org/jira/browse/CALCITE-7619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090821#comment-18090821
]
Mihai Budiu commented on CALCITE-7619:
--------------------------------------
The Simplify code is worse than a maze. None of the functions has invariants
about whether it needs to preserve types or not, so it is very difficult to say
where the actual bug is. But the result is definitely incorrect: the resulting
expression does not produce the same result as the original expression.
> RexSimplify incorrectly simplifies IS_FALSE(x) when x is nullable
> -----------------------------------------------------------------
>
> Key: CALCITE-7619
> URL: https://issues.apache.org/jira/browse/CALCITE-7619
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Priority: Minor
> Fix For: 1.43.0
>
>
> The expression is reduced to CAST(NOT(x) AS BOOLEAN NOT NULL). This is wrong
> when x is NULL.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)