hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pxi...@apache.org
Subject hive git commit: HIVE-16142: ATSHook NPE via LLAP (Pengcheng Xiong, reviewed by Ashutosh Chauhan)
Date Wed, 08 Mar 2017 18:41:35 GMT
Repository: hive
Updated Branches:
  refs/heads/master 35d707950 -> 48e4e04c3


HIVE-16142: ATSHook NPE via LLAP (Pengcheng Xiong, reviewed 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/48e4e04c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/48e4e04c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/48e4e04c

Branch: refs/heads/master
Commit: 48e4e04c3b446f219c24b5fd0cf03c9e2e210f0c
Parents: 35d7079
Author: Pengcheng Xiong <pxiong@apache.org>
Authored: Wed Mar 8 10:41:12 2017 -0800
Committer: Pengcheng Xiong <pxiong@apache.org>
Committed: Wed Mar 8 10:41:12 2017 -0800

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/48e4e04c/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
index 086ccb2..d35e3ba 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
@@ -797,10 +797,11 @@ public class ExplainTask extends Task<ExplainWork> implements
Serializable {
                 operator.getOperatorId());
             if (!this.work.isUserLevelExplain() && this.work.isFormatted()
                 && operator instanceof ReduceSinkOperator) {
-              ((JSONObject) jsonOut.get(JSONObject.getNames(jsonOut)[0])).put(
-                  OUTPUT_OPERATORS,
-                  Arrays.toString(((ReduceSinkOperator) operator).getConf().getOutputOperators()
-                      .toArray()));
+              List<String> outputOperators = ((ReduceSinkOperator) operator).getConf().getOutputOperators();
+              if (outputOperators != null) {
+                ((JSONObject) jsonOut.get(JSONObject.getNames(jsonOut)[0])).put(OUTPUT_OPERATORS,
+                    Arrays.toString(outputOperators.toArray()));
+              }
             }
           }
         }


Mime
View raw message