You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Prasanth Jayachandran (JIRA)" <ji...@apache.org> on 2018/06/27 01:03:00 UTC
[jira] [Commented] (HIVE-20004) Wrong scale used by
ConvertDecimal64ToDecimal results in incorrect results
[ https://issues.apache.org/jira/browse/HIVE-20004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524408#comment-16524408 ]
Prasanth Jayachandran commented on HIVE-20004:
----------------------------------------------
Reserving a slot in precommit queue. Will update the patch with shortened test case for this issue later tonight.
cc/ [~mmccline]
> 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
> Attachments: HIVE-20004.1.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)