You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Marta Kuczora (JIRA)" <ji...@apache.org> on 2018/04/10 21:48:00 UTC
[jira] [Created] (HIVE-19158) Fix NPE in the HiveMetastore add
partition tests
Marta Kuczora created HIVE-19158:
------------------------------------
Summary: Fix NPE in the HiveMetastore add partition tests
Key: HIVE-19158
URL: https://issues.apache.org/jira/browse/HIVE-19158
Project: Hive
Issue Type: Bug
Components: Metastore, Test
Reporter: Marta Kuczora
Assignee: Marta Kuczora
The TestAddPartitions and TestAddPartitionsFromPartSpec tests revealed that NPE is thrown in some cases. These NPEs could be prevented with a simple null check and a MetaException with a proper error message should be thrown instead.
Example: NPE is thrown in the following test cases
* TestAddPartitions
** testAddPartitionNullPartition
** testAddPartitionNullValue
** testAddPartitionsNullList
* TestAddPartitionsFromPartSpec
** testAddPartitionSpecNullSpec
** testAddPartitionSpecNullPartList
** testAddPartitionSpecNoDB
** testAddPartitionSpecNoTable
** testAddPartitionSpecNoDBAndTableInPartition
** testAddPartitionSpecNullPart
** testAddPartitionSpecChangeRootPathToNull
** testAddPartitionSpecWithSharedSDNullSd
** testAddPartitionSpecWithSharedSDNoValue
** testAddPartitionSpecNullValue
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)