Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2330

Add support for nested aggregate expressions for window aggregates

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 1.8.0
    • Labels:
      None

      Description

      Aggregate expressions currently cannot be nested.

      The following query fails to validate:

      select avg(sum(i_item_sk)) from item;
      

      Error:
      Query failed: SqlValidatorException: Aggregate expressions cannot be nested

      Log attached.

      Reference: TPCDS queries (20, 63, 98, ...) fail to execute.

        Attachments

        1. drillbit.log
          11 kB
          Abhishek Girish

          Issue Links

            Activity

              People

              • Assignee:
                gparai Gautam Parai
                Reporter:
                agirish Abhishek Girish
                Reviewer:
                Khurram Faraaz
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: