[ https://issues.apache.org/jira/browse/HIVE-8523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dere updated HIVE-8523: ----------------------------- Resolution: Fixed Fix Version/s: 0.15.0 Status: Resolved (was: Patch Available) Committed to trunk. > 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 > Fix For: 0.15.0 > > 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)