hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gop...@apache.org
Subject hive git commit: HIVE-11578: Fix NPE in ExplainWork (Rajesh Balamohan, via Gopal V)
Date Tue, 13 Oct 2015 23:49:48 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1 e190aa61a -> fb4622af8


HIVE-11578: Fix NPE in ExplainWork (Rajesh Balamohan, via Gopal V)


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

Branch: refs/heads/branch-1
Commit: fb4622af8e7bc7620a534757da6278a66930bdc1
Parents: e190aa6
Author: Gopal V <gopalv@apache.org>
Authored: Tue Oct 13 16:17:15 2015 -0700
Committer: Gopal V <gopalv@apache.org>
Committed: Tue Oct 13 16:33:26 2015 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/fb4622af/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java
index aa208a5..ea4ce44 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java
@@ -77,7 +77,9 @@ public class ExplainWork implements Serializable {
     this.fetchTask = fetchTask;
     this.astStringTree = astStringTree;
     this.analyzer = analyzer;
-    this.inputs = analyzer.getInputs();
+    if (analyzer != null) {
+      this.inputs = analyzer.getInputs();
+    }
     this.extended = extended;
     this.formatted = formatted;
     this.dependency = dependency;


Mime
View raw message