You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by he...@apache.org on 2011/12/09 03:43:12 UTC
svn commit: r1212231 -
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
Author: heyongqiang
Date: Fri Dec 9 02:43:12 2011
New Revision: 1212231
URL: http://svn.apache.org/viewvc?rev=1212231&view=rev
Log:
HIVE-2632 [jira] ignore exception for external jars via reflection
(Namit Jain via Yongqiang He)
Summary:
HIVE-2632
Test Plan: EMPTY
Reviewers: JIRA, heyongqiang
Reviewed By: heyongqiang
CC: heyongqiang
Differential Revision: 639
Modified:
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java?rev=1212231&r1=1212230&r2=1212231&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java Fri Dec 9 02:43:12 2011
@@ -42,6 +42,7 @@ import org.apache.hadoop.io.IOUtils;
import org.apache.hadoop.util.StringUtils;
import org.json.JSONException;
import org.json.JSONObject;
+import java.lang.reflect.InvocationTargetException;
/**
* ExplainTask implementation.
@@ -319,7 +320,14 @@ public class ExplainTask extends Task<Ex
if (extended || xpl_note.normalExplain()) {
- Object val = m.invoke(work);
+ Object val = null;
+ try {
+ val = m.invoke(work);
+ }
+ catch (InvocationTargetException ex) {
+ // Ignore the exception, this may be caused by external jars
+ val = null;
+ }
if (val == null) {
continue;