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

Expression with ALL aggregate return unexpected result.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            zstan Evgeny Stanilovsky

            Dates

              Created:
              Updated:

              Slack

                Issue deployment