You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2013/11/22 15:51:36 UTC

[jira] [Created] (HIVE-5872) Make UDAFs such as GenericUDAFSum report accurate precision/scale for decimal types

Xuefu Zhang created HIVE-5872:
---------------------------------

             Summary: Make UDAFs such as GenericUDAFSum report accurate precision/scale for decimal types
                 Key: HIVE-5872
                 URL: https://issues.apache.org/jira/browse/HIVE-5872
             Project: Hive
          Issue Type: Improvement
          Components: Types, UDF
    Affects Versions: 0.12.0
            Reporter: Xuefu Zhang
            Assignee: Xuefu Zhang


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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)