This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 62f594a54d0 HIVE-27240: NPE on Hive Hook Proto Log Writer. (#4925).
(Shubham Sharma, reviewed by Ayush Saxena)
62f594a54d0 is described below
commit 62f594a54d02d65095f883ca8627899f739075c4
Author: Shubham Sharma <[email protected]>
AuthorDate: Fri Dec 8 02:49:27 2023 +0530
HIVE-27240: NPE on Hive Hook Proto Log Writer. (#4925). (Shubham Sharma,
reviewed by Ayush Saxena)
---
ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 a8d4a8cbf53..0cd931391a3 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
@@ -950,7 +950,7 @@ public class ExplainTask extends Task<ExplainWork>
implements Serializable {
JSONObject outputPlan(Object work, PrintStream out,
boolean extended, boolean jsonOutput, int indent, String appendToHeader)
throws Exception {
return outputPlan(work, out, extended, jsonOutput, indent, appendToHeader,
- queryState.getConf().getBoolVar(ConfVars.HIVE_IN_TEST));
+ queryState != null &&
queryState.getConf().getBoolVar(ConfVars.HIVE_IN_TEST));
}
public JSONObject outputPlan(Object work, PrintStream out,