Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-1019

Rounding Errors in Floating Point Arithmetic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Expression
    • None
    • Ubuntu 14.04
      Hadoop 2.4.1

    Description

      Floating point rounding errors are found when executing some statement on cli. When running math functions with this floating point number, results will be varied based on which JVM "Math" implementation used.

      default> select 0.8-0.1;
      ?minus
      -------------------------------
      0.7000000000000001
      (1 rows, 0.067 sec, 0 B selected)

      With a modified Float8Dotum class, SQL result will be shown like this.

      default> select 0.8-0.1;
      ?minus
      -------------------------------
      0.7
      (1 rows, 0.004 sec, 0 B selected)

      Attachments

        1. TAJO-1019.20140903.patch
          47 kB
          Jihun Kang

        Activity

          People

            ykrips Jihun Kang
            ykrips Jihun Kang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: