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

Invalid nested window aggregate query with alias

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

      The following query should fail but does not!

      SELECT max(sum(sal)) OVER (partition by deptno) AS maxSal
      FROM emp
      WHERE deptno > 10;
      

      Attachments

        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