hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-8523) Potential null dereference in DDLSemanticAnalyzer#addInputsOutputsAlterTable()
Date Tue, 21 Oct 2014 06:06:33 GMT

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

Navis updated HIVE-8523:
------------------------
    Attachment: HIVE-8523.1.patch.txt

> Potential null dereference in DDLSemanticAnalyzer#addInputsOutputsAlterTable()
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-8523
>                 URL: https://issues.apache.org/jira/browse/HIVE-8523
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>         Attachments: HIVE-8523.1.patch.txt
>
>
> Here is related code:
> {code}
>         if (desc == null
>             || !AlterTableDesc.doesAlterTableTypeSupportPartialPartitionSpec(desc.getOp()))
{
>           throw new SemanticException(
>               ErrorMsg.ALTER_TABLE_TYPE_PARTIAL_PARTITION_SPEC_NO_SUPPORTED, desc.getOp().name());
> {code}
> If desc is null, the construction of SemanticException would trigger NPE due to the call
to desc.getOp().



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

Mime
View raw message