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

Add support for nested aggregate expressions for window aggregates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 1.8.0
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: