hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-6421) abs() should preserve precision/scale of decimal input
Date Wed, 12 Feb 2014 23:25:20 GMT
Jason Dere created HIVE-6421:
--------------------------------

             Summary: abs() should preserve precision/scale of decimal input
                 Key: HIVE-6421
                 URL: https://issues.apache.org/jira/browse/HIVE-6421
             Project: Hive
          Issue Type: Bug
          Components: UDF
            Reporter: Jason Dere
            Assignee: Jason Dere


{noformat}
hive> describe dec1;
OK
c1                  	decimal(10,2)       	None 

hive> explain select c1, abs(c1) from dec1;
 ...
            Select Operator
              expressions: c1 (type: decimal(10,2)), abs(c1) (type: decimal(38,18))

{noformat}

Given that abs() is a GenericUDF it should be possible for the return type precision/scale
to match the input precision/scale.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message