You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "MinJi Kim (JIRA)" <ji...@apache.org> on 2017/08/17 20:59:02 UTC
[jira] [Created] (CALCITE-1953) Reducing NOT() should not collaose
NOT(IS_TRUE) to IS_FALSE for nullable inputs
MinJi Kim created CALCITE-1953:
----------------------------------
Summary: Reducing NOT() should not collaose NOT(IS_TRUE) to IS_FALSE for nullable inputs
Key: CALCITE-1953
URL: https://issues.apache.org/jira/browse/CALCITE-1953
Project: Calcite
Issue Type: Bug
Reporter: MinJi Kim
Assignee: Julian Hyde
In RexSimplify, when simplifying NOT(), we negate the input expression. But for IS_FALSE/IS_TRUE/IS_NOT_FALSE/IS_NOT_TRUE this cannot be just negated if the input is nullable.
{code}
IS_FALSE(null) = false
IS_TRUE(null) = false
NOT(IS_FALSE(null)) = true != IS_TRUE(null)
IS_NOT_FALSE(null) = true
IS_NOT_TRUE(null) = true
NOT(IS_NOT_FALSE(null)) = false != IS_NOT_TRUE(null)
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)