You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Vladimir Sitnikov (JIRA)" <ji...@apache.org> on 2018/09/13 06:33:00 UTC

[jira] [Created] (CALCITE-2555) RexSimplify: >=(true, null) could be simplified to null

Vladimir Sitnikov created CALCITE-2555:
------------------------------------------

             Summary: RexSimplify: >=(true, null) could be simplified to null
                 Key: CALCITE-2555
                 URL: https://issues.apache.org/jira/browse/CALCITE-2555
             Project: Calcite
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.17.0
            Reporter: Vladimir Sitnikov
            Assignee: Julian Hyde


{code:java}
@Test public void simplifyComparisonWithNull() {
  checkSimplify2(ge(trueLiteral, falseLiteral), "true", "true");
  checkSimplify2(ge(trueLiteral, nullBool), "null", "false");
  checkSimplify2(ge(nullBool, nullBool), "null", "false");
}
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)