hive git commit: HIVE-14178 : Hive::needsToCopy should reuse FileUtils::equalsFileSystem (Gopal V via Ashutosh Chauhan)
Repository: hive Updated Branches: refs/heads/branch-2.1 39ecc205e -> 6588b8402 HIVE-14178 : Hive::needsToCopy should reuse FileUtils::equalsFileSystem (Gopal V via Ashutosh Chauhan) Signed-off-by: Ashutosh Chauhan Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/6588b840 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/6588b840 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/6588b840 Branch: refs/heads/branch-2.1 Commit: 6588b84028b1d193ef930211480b3811f3274b7a Parents: 39ecc20 Author: Gopal V Authored: Fri Jul 8 16:20:38 2016 -0700 Committer: Ashutosh Chauhan Committed: Fri Jul 8 16:20:38 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/6588b840/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 82abd52..611266f 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 @@ -2994,7 +2994,7 @@ private void constructOneLBLocationMap(FileStatus fSta, */ static protected boolean needToCopy(Path srcf, Path destf, FileSystem srcFs, FileSystem destFs) throws HiveException { //Check if different FileSystems -if (!srcFs.getClass().equals(destFs.getClass())) { +if (!FileUtils.equalsFileSystem(srcFs, destFs)) { return true; }
hive git commit: HIVE-14178 : Hive::needsToCopy should reuse FileUtils::equalsFileSystem (Gopal V via Ashutosh Chauhan)
Repository: hive Updated Branches: refs/heads/master 39d46a0f3 -> 2e47ac1c3 HIVE-14178 : Hive::needsToCopy should reuse FileUtils::equalsFileSystem (Gopal V via Ashutosh Chauhan) Signed-off-by: Ashutosh Chauhan Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/2e47ac1c Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/2e47ac1c Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/2e47ac1c Branch: refs/heads/master Commit: 2e47ac1c3fc05d58097b7e4f7a8f209922b87b66 Parents: 39d46a0 Author: Gopal V Authored: Fri Jul 8 16:20:38 2016 -0700 Committer: Ashutosh Chauhan Committed: Fri Jul 8 16:21:55 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/2e47ac1c/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 82abd52..611266f 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 @@ -2994,7 +2994,7 @@ private void constructOneLBLocationMap(FileStatus fSta, */ static protected boolean needToCopy(Path srcf, Path destf, FileSystem srcFs, FileSystem destFs) throws HiveException { //Check if different FileSystems -if (!srcFs.getClass().equals(destFs.getClass())) { +if (!FileUtils.equalsFileSystem(srcFs, destFs)) { return true; }