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

2016-08-30 Thread Varun Gullipalli (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-14252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Gullipalli updated HIVE-14252:

Attachment: test data.txt

> 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.577   77408.35
> 3336.16996  2582.35013



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


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

2016-07-15 Thread Varun Gullipalli (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-14252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Gullipalli updated HIVE-14252:

Description: 
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.577   77408.35
3336.16996  2582.35013


  was:
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 table 2
where DT ='20160517'   

99773.577   77408.35
3336.16996  2582.35013



> 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
>
> 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.577   77408.35
> 3336.16996  2582.35013



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