Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15325

Scale is greater than decimal values trunc(d,s) returns wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • UDF
    • None

    Description

      Scale is greater than decimal values trunc(d,s) returns wrong results.

      select trunc(1234567891.1234567891,15), trunc(1234567891.1234567891,25), trunc(1234567891.1234567891,20), trunc(1234567891.1234567891,50) FROM src tablesample (1 rows);

      Add tests with negative numbers as well as no-op (e.g. select trunc (12.34, 100))

      Attachments

        1. HIVE-15325.patch
          11 kB
          Chinna Rao Lalam

        Activity

          People

            chinnalalam Chinna Rao Lalam
            chinnalalam Chinna Rao Lalam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: