hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-20004) Wrong scale used by ConvertDecimal64ToDecimal results in incorrect results
Date Wed, 27 Jun 2018 23:54:00 GMT

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

Hive QA commented on HIVE-20004:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12929346/HIVE-20004.2.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 4 failed/errored test(s), 14611 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_decimal_5] (batchId=1)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_decimal_mapjoin] (batchId=59)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_decimal_mapjoin]
(batchId=169)
org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[vector_decimal_mapjoin] (batchId=133)
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/12196/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/12196/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-12196/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 4 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12929346 - PreCommit-HIVE-Build

> 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, HIVE-20004.2.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)

Mime
View raw message