commit f068c3b2fedc0046b3d9416691234396b801d92c Author: Mithun RK Date: Wed Dec 21 15:53:12 2016 -0800 HIVE-15491: Failures are masked/swallowed in GenericUDTFJSONTuple::process(). diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java index ea5aeec..21cea0e 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java @@ -18,6 +18,7 @@ package org.apache.hadoop.hive.ql.udf.generic; +import java.io.IOException; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; @@ -196,8 +197,8 @@ public void process(Object[] o) throws HiveException { } forward(retCols); return; - } catch (Throwable e) { - LOG.error("JSON parsing/evaluation exception" + e); + } catch (IOException e) { + LOG.error("JSON parsing/evaluation exception", e); forward(nullCols); } }