You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2025/05/25 17:43:00 UTC

[jira] [Created] (CALCITE-7041) Simplify simple contradicting expressions

Sergey Nuyanzin created CALCITE-7041:
----------------------------------------

             Summary: Simplify simple contradicting expressions
                 Key: CALCITE-7041
                 URL: https://issues.apache.org/jira/browse/CALCITE-7041
             Project: Calcite
          Issue Type: Improvement
            Reporter: Sergey Nuyanzin


For instance
{code:sql}
a > b AND b > a AND a IS NOT NULL AND b IS NOT NULL
{code}
or
{code:sql}
a >= b AND b > a AND a IS NOT NULL AND b IS NOT NULL
{code}
or
{code:sql}
a > b AND b >= a AND a IS NOT NULL AND b IS NOT NULL
{code}
could be simplified to {{FALSE}}

and
{code:sql}
a >= b AND b >= a AND a IS NOT NULL AND b IS NOT NULL
{code}
could be simplified to {{a = b}}

Probably there is something else



--
This message was sent by Atlassian Jira
(v8.20.10#820010)