Author: ekoifman
Date: Mon Jan 26 18:22:13 2015
New Revision: 1654855

URL: http://svn.apache.org/r1654855
Log:
HIVE-9361 - Intermittent NPE in SessionHiveMetaStoreClient.alterTempTable

Modified:
    
hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java

Modified: 
hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
URL: 
http://svn.apache.org/viewvc/hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java?rev=1654855&r1=1654854&r2=1654855&view=diff
==============================================================================
--- 
hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
 (original)
+++ 
hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
 Mon Jan 26 18:22:13 2015
@@ -361,7 +361,7 @@ public class SessionHiveMetaStoreClient
 
     org.apache.hadoop.hive.metastore.api.Table newtCopy = 
deepCopyAndLowerCaseTable(newt);
     MetaStoreUtils.updateUnpartitionedTableStatsFast(newtCopy,
-        wh.getFileStatusesForSD(newtCopy.getSd()), false, true);
+        getWh().getFileStatusesForSD(newtCopy.getSd()), false, true);
     Table newTable = new Table(newtCopy);
     String newDbName = newTable.getDbName();
     String newTableName = newTable.getTableName();


Reply via email to