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

Unexpected query results when multiplying decimal column with constant (Parquet files)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.19.0
    • None
    • None

    Description

      I get unexpected results when trying to multiply a constant value with a decimal(29,6) column.

      See attached files for sample data and a test script.
       

      The correct/desired output should be 13.25 * 0.75 = 9.9375

      EDIT:
      I noticed that SUM(`Hours` * 0.75) returns 9.9375 which is the expected result. However, the other variations from TestScript.txt should logically all return 9.9375

      Attachments

        1. TestFile.parquet
          0.9 kB
          Martin Puge Nielsen
        2. TestScript.txt
          0.2 kB
          Martin Puge Nielsen

        Activity

          People

            Unassigned Unassigned
            mpn Martin Puge Nielsen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: