hive-dev 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-7997) Potential null pointer reference in ObjectInspectorUtils#compareTypes()
Date Fri, 05 Sep 2014 17:53:29 GMT

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

Hive QA commented on HIVE-7997:
-------------------------------



{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/12666658/HIVE-7997.1.patch.txt

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 6163 tests executed
*Failed tests:*
{noformat}
org.apache.hive.hcatalog.pig.TestOrcHCatLoader.testReadDataPrimitiveTypes
{noformat}

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

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: 12666658

> Potential null pointer reference in ObjectInspectorUtils#compareTypes()
> -----------------------------------------------------------------------
>
>                 Key: HIVE-7997
>                 URL: https://issues.apache.org/jira/browse/HIVE-7997
>             Project: Hive
>          Issue Type: Bug
>          Components: Types
>            Reporter: Ted Yu
>            Assignee: Navis
>         Attachments: HIVE-7997.1.patch.txt
>
>
> {code}
>       if (childFieldsList1 == null && childFieldsList2 == null) {
>         return true;
>       }
>       if (childFieldsList1.size() != childFieldsList2.size()) {
>         return false;
>       }
> {code}
> If either childFieldsList1 or childFieldsList2 is null but not both, the second if statement
would produce NPE.



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

Mime
View raw message