hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-8282) Potential null deference in ConvertJoinMapJoin#convertJoinBucketMapJoin()
Date Wed, 16 Sep 2015 02:10:45 GMT

     [ https://issues.apache.org/jira/browse/HIVE-8282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated HIVE-8282:
-------------------------
    Description: 
In convertJoinMapJoin():
{code}
    for (Operator<? extends OperatorDesc> parentOp : joinOp.getParentOperators()) {
      if (parentOp instanceof MuxOperator) {
        return null;
      }
    }
{code}

NPE would result if convertJoinMapJoin() returns null:
{code}
    MapJoinOperator mapJoinOp = convertJoinMapJoin(joinOp, context, bigTablePosition);
    MapJoinDesc joinDesc = mapJoinOp.getConf();
{code}


  was:
In convertJoinMapJoin():
{code}
    for (Operator<? extends OperatorDesc> parentOp : joinOp.getParentOperators()) {
      if (parentOp instanceof MuxOperator) {
        return null;
      }
    }
{code}
NPE would result if convertJoinMapJoin() returns null:
{code}
    MapJoinOperator mapJoinOp = convertJoinMapJoin(joinOp, context, bigTablePosition);
    MapJoinDesc joinDesc = mapJoinOp.getConf();
{code}



> Potential null deference in ConvertJoinMapJoin#convertJoinBucketMapJoin()
> -------------------------------------------------------------------------
>
>                 Key: HIVE-8282
>                 URL: https://issues.apache.org/jira/browse/HIVE-8282
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>            Reporter: Ted Yu
>            Priority: Minor
>         Attachments: HIVE-8282.patch
>
>
> In convertJoinMapJoin():
> {code}
>     for (Operator<? extends OperatorDesc> parentOp : joinOp.getParentOperators())
{
>       if (parentOp instanceof MuxOperator) {
>         return null;
>       }
>     }
> {code}
> NPE would result if convertJoinMapJoin() returns null:
> {code}
>     MapJoinOperator mapJoinOp = convertJoinMapJoin(joinOp, context, bigTablePosition);
>     MapJoinDesc joinDesc = mapJoinOp.getConf();
> {code}



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

Mime
View raw message