You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by su...@apache.org on 2015/07/20 22:12:31 UTC

[21/50] [abbrv] hive git commit: HIVE-11215: Delete spills only if they exist (Gopal V, reviewed by Matt Mccline)

HIVE-11215: Delete spills only if they exist (Gopal V, reviewed by Matt Mccline)


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

Branch: refs/heads/spark
Commit: 6e0d4809baed42e25a46373f0a01a3ef421337ad
Parents: 46c76d6
Author: Gopal V <go...@apache.org>
Authored: Tue Jul 14 22:19:02 2015 -0700
Committer: Gopal V <go...@apache.org>
Committed: Tue Jul 14 22:19:02 2015 -0700

----------------------------------------------------------------------
 .../exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/6e0d4809/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
index 32b60d0..d2e980c 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
@@ -305,9 +305,12 @@ public class VectorMapJoinRowBytesContainer {
       }
       fileOutputStream = null;
     }
-    try {
-      FileUtil.fullyDelete(parentFile);
-    } catch (Throwable ignored) {
+
+    if (parentFile != null) {
+      try {
+        FileUtil.fullyDelete(parentFile);
+      } catch (Throwable ignored) {
+      }
     }
     parentFile = null;
     tmpFile = null;