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

Hive QA commented on HIVE-6421:
-------------------------------



{color:red}Overall{color}: -1 at least one tests failed

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

{color:red}ERROR:{color} -1 due to 5 failed/errored test(s), 6655 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_decimal_udf
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_vector_decimal_math_funcs
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_vector_decimal_udf
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_vector_decimal_math_funcs
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_vector_decimal_udf
{noformat}

Test results: 
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/1846/testReport
Console output: 
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/1846/console
Test logs: 
http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-1846/

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

This message is automatically generated.

ATTACHMENT ID: 12682515 - PreCommit-HIVE-TRUNK-Build

> abs() should preserve precision/scale of decimal input
> ------------------------------------------------------
>
>                 Key: HIVE-6421
>                 URL: https://issues.apache.org/jira/browse/HIVE-6421
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-6421.1.txt, HIVE-6421.2.patch
>
>
> {noformat}
> hive> describe dec1;
> OK
> c1                    decimal(10,2)           None 
> hive> explain select c1, abs(c1) from dec1;
>  ...
>             Select Operator
>               expressions: c1 (type: decimal(10,2)), abs(c1) (type: 
> decimal(38,18))
> {noformat}
> Given that abs() is a GenericUDF it should be possible for the return type 
> precision/scale to match the input precision/scale.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to