[
https://issues.apache.org/jira/browse/HIVE-20004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prasanth Jayachandran updated HIVE-20004:
-----------------------------------------
Resolution: Fixed
Fix Version/s: 3.2.0
4.0.0
Target Version/s: 4.0.0, 3.2.0 (was: 3.1.0, 3.0.1, 4.0.0)
Status: Resolved (was: Patch Available)
> Wrong scale used by ConvertDecimal64ToDecimal results in incorrect results
> --------------------------------------------------------------------------
>
> Key: HIVE-20004
> URL: https://issues.apache.org/jira/browse/HIVE-20004
> Project: Hive
> Issue Type: Bug
> Affects Versions: 3.1.0, 3.0.1, 4.0.0
> Reporter: Prasanth Jayachandran
> Assignee: Prasanth Jayachandran
> Priority: Critical
> Fix For: 4.0.0, 3.2.0
>
> Attachments: HIVE-20004.1.patch, HIVE-20004.2.patch,
> HIVE-20004.3.patch
>
>
> ConvertDecimal64ToDecimal uses scale from output column vector which results
> in incorrect results.
> Input: decimal(8,1) Output: decimal(9,2)
> Input value: 963.8 gets converted to 96.38 which is wrong. The scale should
> not change this case (value should be 963.8 even after the conversion).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)