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

Navis updated HIVE-8523:
------------------------
    Attachment: HIVE-8523.2.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
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-8523.1.patch.txt, HIVE-8523.2.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)

Reply via email to