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

Make UDAFs such as GenericUDAFSum report accurate precision/scale for decimal types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • Types, UDF
    • None

    Description

      Currently UDAFs are still reporting system default precision/scale (38, 18) for decimal results. Not only this is coarse, but also this can cause problems in subsequent operators such as division, where the result is dependent on the precision/scale of the input, which can go out of bound (38,38). Thus, these UDAFs should correctly report the precision/scale of the result.

      Attachments

        1. HIVE-5872.patch
          5 kB
          Xuefu Zhang
        2. HIVE-5872.1.patch
          45 kB
          Xuefu Zhang
        3. HIVE-5872.2.patch
          524 kB
          Xuefu Zhang
        4. HIVE-5872.3.patch
          18 kB
          Xuefu Zhang
        5. HIVE-5872.4.patch
          17 kB
          Xuefu Zhang

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              xuefuz Xuefu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: