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

Aggregate functions produce wrong results when operating on null values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • Execution - Codegen
    • None

    Description

      If all input values are null, we are producing wrong results for certain aggregate functions. This shows up with the following query on TPC-DS:

      select  sum(wr_return_quantity), min(wr_return_quantity) from web_returns where wr_return_quantity is null;
      

      Attachments

        Activity

          People

            amansinha100 Aman Sinha
            amansinha100 Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: