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

Invalid nested window aggregate query with alias

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
      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

            People

            • Assignee:
              gparai Gautam Kumar Parai
              Reporter:
              gparai Gautam Kumar Parai
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: