This is an automated email from the ASF dual-hosted git repository. prasanthj pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-3 by this push: new c0bb1db HIVE-21223: CachedStore returns null partition when partition does not exist (Prasanth Jayachandran reviewed by Vaibhav Gumashta) c0bb1db is described below commit c0bb1db0bf3fa6853be2777ba20fb9a56a713962 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/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index 2b03d87..39cba08 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -1511,6 +1511,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; }