Repository: hive
Updated Branches:
  refs/heads/branch-1 df5fb3a3e -> d0f805217


HIVE-14814: metastoreClient is used directly in Hive cause NPE (Prasanth 
Jayachandran reviewed by Eugene Koifman)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/d0f80521
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/d0f80521
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/d0f80521

Branch: refs/heads/branch-1
Commit: d0f80521793eadaf51a0213536dd7f2917392055
Parents: df5fb3a
Author: Prasanth Jayachandran <prasan...@apache.org>
Authored: Thu Sep 22 10:50:30 2016 -0700
Committer: Prasanth Jayachandran <prasan...@apache.org>
Committed: Thu Sep 22 10:51:40 2016 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d0f80521/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java 
b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
index 4a0b685..c2ab4bf 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
@@ -1604,7 +1604,7 @@ private void constructOneLBLocationMap(FileStatus fSta,
         for (Partition p : partitionsMap.values()) {
           partNames.add(p.getName());
         }
-        metaStoreClient.addDynamicPartitions(txnId, tbl.getDbName(), 
tbl.getTableName(),
+        getMSC().addDynamicPartitions(txnId, tbl.getDbName(), 
tbl.getTableName(),
           partNames, AcidUtils.toDataOperationType(operation));
       }
       return partitionsMap;

Reply via email to