You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2014/10/28 06:19:35 UTC

[jira] [Commented] (HIVE-8613) percentile_approx raise a comparator error

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

Hive QA commented on HIVE-8613:
-------------------------------



{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/12677473/HIVE-8613.1.patch.txt

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 6579 tests executed
*Failed tests:*
{noformat}
org.apache.hive.minikdc.TestJdbcWithMiniKdc.testNegativeTokenAuth
{noformat}

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

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: 1 tests failed
{noformat}

This message is automatically generated.

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

> percentile_approx raise a comparator error
> ------------------------------------------
>
>                 Key: HIVE-8613
>                 URL: https://issues.apache.org/jira/browse/HIVE-8613
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: Nicolas Lalevée
>            Assignee: Nicolas Lalevée
>         Attachments: HIVE-8613.1.patch.txt
>
>
> I have implemented an UADF which wrap around percentile_approx, and I have been hit by the following stack trace:
> {noformat}
> Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
> 	at java.util.ComparableTimSort.mergeLo(ComparableTimSort.java:714)
> 	at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:451)
> 	at java.util.ComparableTimSort.mergeCollapse(ComparableTimSort.java:376)
> 	at java.util.ComparableTimSort.sort(ComparableTimSort.java:182)
> 	at java.util.ComparableTimSort.sort(ComparableTimSort.java:146)
> 	at java.util.Arrays.sort(Arrays.java:472)
> 	at java.util.Collections.sort(Collections.java:155)
> 	at org.apache.hadoop.hive.ql.udf.generic.NumericHistogram.merge(NumericHistogram.java:161)
> {noformat}
> In my use case, with my special UADF, there were Double.NaN
> Implementing a proper double comparaison with Double.compare in com.goojet.mapred.hive.udf.NumericHistogram.Coord.compareTo(Object) fixes it.



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