HIVE-21223: CachedStore returns null partition when partition does not exist (Prasant...
authorPrasanth Jayachandran <prasanthj@apache.org>
Tue, 12 Feb 2019 08:18:08 +0000 (00:18 -0800)
committerPrasanth Jayachandran <prasanthj@apache.org>
Tue, 12 Feb 2019 08:18:08 +0000 (00:18 -0800)
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java

index 182d5cc..bded743 100644 (file)
@@ -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;
   }