Hive
  1. Hive
  2. HIVE-5872

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development