hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the...@apache.org
Subject svn commit: r1634788 - /hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
Date Tue, 28 Oct 2014 06:40:15 GMT
Author: thejas
Date: Tue Oct 28 06:40:15 2014
New Revision: 1634788

URL: http://svn.apache.org/r1634788
Log:
HIVE-7623 : hive partition rename fails if filesystem cache is disabled (Navis via Thejas
Nair)

Modified:
    hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java

Modified: hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java?rev=1634788&r1=1634787&r2=1634788&view=diff
==============================================================================
--- hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
(original)
+++ hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
Tue Oct 28 06:40:15 2014
@@ -354,7 +354,7 @@ public class HiveAlterHandler implements
           srcFs = wh.getFs(srcPath);
           destFs = wh.getFs(destPath);
           // check that src and dest are on the same file system
-          if (srcFs != destFs) {
+          if (!FileUtils.equalsFileSystem(srcFs, destFs)) {
             throw new InvalidOperationException("table new location " + destPath
               + " is on a different file system than the old location "
               + srcPath + ". This operation is not supported");



Mime
View raw message