hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-14863) Decimal to int conversion produces incorrect values
Date Sat, 01 Oct 2016 00:45:22 GMT

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

Jason Dere commented on HIVE-14863:
-----------------------------------

So this is taking care of decimal conversion to other numeric types, what's the behavior for
other numeric type conversion, does that have to be looked at too?

> Decimal to int conversion produces incorrect values
> ---------------------------------------------------
>
>                 Key: HIVE-14863
>                 URL: https://issues.apache.org/jira/browse/HIVE-14863
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>            Priority: Critical
>         Attachments: HIVE-14863.patch
>
>
> {noformat}
> > select cast(cast ('111111111111111' as decimal(38,0)) as int);
> OK
> 307163591
> {noformat}



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

Mime
View raw message