Wenzhe Zhou has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19804


Change subject: IMPALA-12099: Catalogd throw NPE when refreshing a partitioned 
table
......................................................................

IMPALA-12099: Catalogd throw NPE when refreshing a partitioned table

Impala Catalogd assumes that if a table is partitioned then all
CompactionInfoStruct entries should not have null partitionname.
This assumption is not true. As according to [1], it is possible
for a compaction queue entry for a partitioned table to have null
partitionname.

This patch handles the null case.

Testing:
 - Ran core test.

[1] 
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java#L345

Change-Id: If37559f3c74ac517d1403ddb82ca28708015d6bf
---
M fe/src/compat-hive-3/java/org/apache/impala/compat/MetastoreShim.java
1 file changed, 8 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/04/19804/1
--
To view, visit http://gerrit.cloudera.org:8080/19804
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If37559f3c74ac517d1403ddb82ca28708015d6bf
Gerrit-Change-Number: 19804
Gerrit-PatchSet: 1
Gerrit-Owner: Wenzhe Zhou <[email protected]>

Reply via email to