You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Varun Gullipalli (JIRA)" <ji...@apache.org> on 2016/08/31 01:29:21 UTC

[jira] [Commented] (HIVE-14252) Sum on Decimal rounding provides incorrect result

    [ https://issues.apache.org/jira/browse/HIVE-14252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15450706#comment-15450706 ] 

Varun Gullipalli commented on HIVE-14252:
-----------------------------------------

Hi Sergio Pena, Attached a file with test data

> Sum on Decimal rounding provides incorrect result
> -------------------------------------------------
>
>                 Key: HIVE-14252
>                 URL: https://issues.apache.org/jira/browse/HIVE-14252
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Varun Gullipalli
>         Attachments: test data.txt
>
>
> hive> select sum(round(amt, 2)), sum(round(txn_amt, 2)) from table1  where DT ='20160517'    
> union all
> select sum(round(amt,2)), sum(round(txn_amt,2)) from table2
> where DT ='20160517'   
> 99773.57999999997       77408.35
> 3336.1699999999996      2582.3500000000013



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)