hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Hsu (JIRA)" <>
Subject [jira] [Updated] (HIVE-15353) Metastore throws NPE if StorageDescriptor.cols is null
Date Thu, 08 Dec 2016 21:19:58 GMT


Anthony Hsu updated HIVE-15353:
    Attachment: HIVE-15353.3.patch

Uploaded new patch.

After further offline discussion with [~cwsteinbach], we decided updating the Thrift API was
not the right approach, given that {{cols}} should always be set. {{add_partition}} should
not accept partitions with null {{cols}} fields. This can be fixed in a follow-up ticket.
For now, this patch simply eliminates the NPEs on the metastore side.

> Metastore throws NPE if StorageDescriptor.cols is null
> ------------------------------------------------------
>                 Key: HIVE-15353
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.1.0, 2.2.0
>            Reporter: Anthony Hsu
>            Assignee: Anthony Hsu
>         Attachments: HIVE-15353.1.patch, HIVE-15353.2.patch, HIVE-15353.3.patch
> When using the HiveMetaStoreClient API directly to talk to the metastore, you get NullPointerExceptions
when StorageDescriptor.cols is null in the Table/Partition object in the following calls:
> * create_table
> * alter_table
> * alter_partition
> Calling add_partition with StorageDescriptor.cols set to null causes null to be stored
in the metastore database and subsequent calls to alter_partition for that partition to fail
with an NPE.
> Null checks should be added to eliminate the NPEs in the metastore.

This message was sent by Atlassian JIRA

View raw message