Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently Hive uses a default decimal type info instance to associate with a decimal constant in the expression tree. To precisely determine the precision/scale of the expression result requires more accurate precision/scale of the type of the decimal constant. Thus, Hive uses a precision/scale of the constant for the type info instance. As an example, the following is not desirable:
hive> create table mytable as select 3.14BD as t from person_age limit 1; hive> desc mytable; OK t decimal(65,30) None Time taken: 0.08 seconds, Fetched: 1 row(s)
instead, the precision/scale for t above should be (3, 2).
Attachments
Attachments
Issue Links
- is required by
-
HIVE-5356 Move arithmatic UDFs to generic UDF implementations
- Resolved
- links to