Evgeny Stanilovsky created CALCITE-6418:
-------------------------------------------

             Summary: Expression with ALL aggregate return  unexpected result.
                 Key: CALCITE-6418
                 URL: https://issues.apache.org/jira/browse/CALCITE-6418
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.37.0
            Reporter: Evgeny Stanilovsky


I expect that:

{noformat}
SELECT i=ALL(SELECT i FROM (values(1), (null)) integers(i) WHERE i=i1.i OR i IS 
NULL) FROM (values(1), (2)) i1(i) ORDER BY i;
{noformat}
will return:

{noformat}
null
null
{noformat}

or 

{noformat}
false
false
{noformat}
(standard defines only true|false) as a return result for EVERY aggregate

instead:


{noformat}
true
null
{noformat}

was observed.



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

Reply via email to