You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jinpeng Wu (Jira)" <ji...@apache.org> on 2023/06/08 03:07:00 UTC
[jira] [Commented] (CALCITE-5769) Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'
[ https://issues.apache.org/jira/browse/CALCITE-5769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730357#comment-17730357 ]
Jinpeng Wu commented on CALCITE-5769:
-------------------------------------
Please note that this transformation is not always true, such as the term cast('abc' as double) may return null even when 'abc' is not null.
> Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'
> --------------------------------------------------------
>
> Key: CALCITE-5769
> URL: https://issues.apache.org/jira/browse/CALCITE-5769
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.34.0
> Reporter: xiong duan
> Priority: Major
>
> According to CALCITE-5156. We should support optimize:
> * 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'
> * 'CAST(e AS t) IS NULL' to 'e IS NULL'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)