You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2020/08/23 21:44:00 UTC

[jira] [Created] (CALCITE-4190) OR simplification incorrectly loses term

Julian Hyde created CALCITE-4190:
------------------------------------

             Summary: OR simplification incorrectly loses term
                 Key: CALCITE-4190
                 URL: https://issues.apache.org/jira/browse/CALCITE-4190
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde


Simplification of OR expressions incorrectly loses a term. For example,
{code}(0 < a and a <= 10) or a is null or (8 < a and a < 12) or a >= 15{code}
is simplified to
{code}as is null or (0 < a and a <= 10) or (8 < a and a < 12){code}

(Moving {{a is null}} to the front is expected, but removing {{a >= 15}} is wrong.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)