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

Using two aggregate functions in a query causes wrong results.

    XMLWordPrintableJSON

Details

    Description

      select min(employee_id), max(employee_id) from cp.`employee.json`;
      ----------------------+

      EXPR$0 EXPR$1

      ----------------------+

      1 1

      ----------------------+

      In the above query we return the same result for both Min and Max. This seems to be related to multi phase aggregate not picking the correct ordinal.

      Attachments

        Activity

          People

            DrillCommitter DrillCommitter
            mehant Mehant Baid
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: