[
https://issues.apache.org/jira/browse/HIVE-14863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15537230#comment-15537230
]
Sergey Shelukhin commented on HIVE-14863:
-----------------------------------------
The patch actually fixes that.
But after that, the values that are between max_int and max_long for int, for
example, still get converted to bogus values somewhere else; I assume that is
not in treereader
> 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)