Author: ekoifman Date: Mon Jan 26 18:22:17 2015 New Revision: 1654856 URL: http://svn.apache.org/r1654856 Log: HIVE-9361 - Intermittent NPE in SessionHiveMetaStoreClient.alterTempTable
Modified: hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java Modified: hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java URL: http://svn.apache.org/viewvc/hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java?rev=1654856&r1=1654855&r2=1654856&view=diff ============================================================================== --- hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java (original) +++ hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java Mon Jan 26 18:22:17 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();