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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.13.0
    • Component/s: Types, UDF
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: