You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "duan xiong (Jira)" <ji...@apache.org> on 2021/08/30 15:54:00 UTC

[jira] [Created] (CALCITE-4758) When All sub-query contains 3-valued logic, Calcite return wrong result

duan xiong created CALCITE-4758:
-----------------------------------

             Summary: When All sub-query contains  3-valued logic, Calcite return wrong result
                 Key: CALCITE-4758
                 URL: https://issues.apache.org/jira/browse/CALCITE-4758
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.27.0
            Reporter: duan xiong
            Assignee: duan xiong


In 3-valued logic, as we know:
{code:java}
unknow and false => false
{code}
So the SQL:
{code:java}
select 1 = all(null, 2) should return false but is null.
{code}
{code:java}
select 1 = all(null, 2, 1) should return false but is true.
{code}



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