[
https://issues.apache.org/jira/browse/HIVE-6399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Hanson updated HIVE-6399:
------------------------------
Attachment: HIVE-6399.01.patch
Attached patch with explicit test for this known bug in testKnownPriorErrors.
No fix yet.
A quick fix would be to use BigDecimal multiply inside Decimal128 multiply.
Although this would not perform well, it'd be safe.
> bug in high-precision Decimal128 multiply
> -----------------------------------------
>
> Key: HIVE-6399
> URL: https://issues.apache.org/jira/browse/HIVE-6399
> Project: Hive
> Issue Type: Sub-task
> Reporter: Eric Hanson
> Fix For: 0.13.0
>
> Attachments: HIVE-6399.01.patch
>
>
> For operation -605044214913338382 * 55269579109718297360
> expected: -33440539101030154945490585226577271520
> but was: -33440539021801992431226247633033321184
> More generally, if you run TestDecimal128.testHighPrecisionDecimal128Multiply
> many times, you'll get an occasional failure. This is one example of such a
> failure.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)