Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6418

Expression with ALL aggregate return unexpected result.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.37.0
    • None
    • core
    • None

    Description

      I expect that:

      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;
      

      expect that will return:

      null
      null
      

      or

      false
      false
      

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

      instead:

      true
      null
      

      was observed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: