Wenzhe Zhou has uploaded a new patch set (#2). ( 
http://gerrit.cloudera.org:8080/19804 )

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

IMPALA-12099: Catalogd throws 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, 16 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/04/19804/2
--
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: newpatchset
Gerrit-Change-Id: If37559f3c74ac517d1403ddb82ca28708015d6bf
Gerrit-Change-Number: 19804
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Daniel Becker <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>

Reply via email to