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

Nested aggregate windowed query fails

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • None
    • None

    Description

      Regression from CALCITE-750 Allow nested window aggregates.
      Calcite allows illegal queries instead of raising an appropriate error. When executing the following query calcite does not raise the following error.

      select avg(sum(b)) over (partition by b) from t1;
      ERROR:  Expression 'b' is not being grouped
      

      Attachments

        Issue Links

        Activity

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

          People

            gparai Gautam Parai
            gparai Gautam Parai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment