This is an automated email from the ASF dual-hosted git repository. prasanthj pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push: new 922b155 HIVE-21223: CachedStore returns null partition when partition does not exist (Prasanth Jayachandran reviewed by Vaibhav Gumashta) 922b155 is described below commit 922b155e85e9fdb5bcc27ac5874503483a591021 Author: Prasanth Jayachandran <prasan...@apache.org> AuthorDate: Tue Feb 12 00:18:08 2019 -0800 HIVE-21223: CachedStore returns null partition when partition does not exist (Prasanth Jayachandran reviewed by Vaibhav Gumashta) --- .../main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index 182d5cc..bded743 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -1884,6 +1884,8 @@ public class CachedStore implements RawStore, Configurable { PrincipalPrivilegeSet privs = getPartitionPrivilegeSet(catName, dbName, tblName, partName, userName, groupNames); p.setPrivileges(privs); + } else { + throw new NoSuchObjectException("partition values=" + partVals.toString()); } return p; }