Ted Yu created HIVE-8523:
----------------------------
Summary: 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
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)