You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by dm...@apache.org on 2019/11/08 22:27:09 UTC
[hive] branch master updated: HIVE-22462: Error Information Lost in
GenericUDTFGetSplits (David Mollitor, reviewed by Miklos Gergely)
This is an automated email from the ASF dual-hosted git repository.
dmollitor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new bfd1c9a HIVE-22462: Error Information Lost in GenericUDTFGetSplits (David Mollitor, reviewed by Miklos Gergely)
bfd1c9a is described below
commit bfd1c9afa54ccaf6b26e5c96cb8ec87f493c2d09
Author: David Mollitor <dm...@apache.org>
AuthorDate: Fri Nov 8 17:26:22 2019 -0500
HIVE-22462: Error Information Lost in GenericUDTFGetSplits (David Mollitor, reviewed by Miklos Gergely)
---
.../apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java
index 48f476e..e95edbf 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java
@@ -313,7 +313,7 @@ public class GenericUDTFGetSplits extends GenericUDTF {
try {
driver.compileAndRespond(query, false);
} catch (CommandProcessorException e) {
- throw new HiveException("Failed to compile query: " + e.getException());
+ throw new HiveException("Failed to compile query", e);
}
QueryPlan plan = driver.getPlan();
@@ -337,7 +337,7 @@ public class GenericUDTFGetSplits extends GenericUDTF {
if (tezWork == null || tezWork.getAllWork().size() != 1) {
- String tableName = "table_"+UUID.randomUUID().toString().replaceAll("[^A-Za-z0-9 ]", "");
+ String tableName = "table_" + UUID.randomUUID().toString().replaceAll("-", "");
String storageFormatString = getTempTableStorageFormatString(conf);
String ctas = "create temporary table " + tableName + " " + storageFormatString + " as " + query;
@@ -348,7 +348,7 @@ public class GenericUDTFGetSplits extends GenericUDTF {
try {
driver.run(ctas, false);
} catch (CommandProcessorException e) {
- throw new HiveException("Failed to create temp table: " + e.getException());
+ throw new HiveException("Failed to create temp table [" + tableName + "]", e);
}
HiveConf.setVar(conf, ConfVars.HIVE_EXECUTION_MODE, "llap");
@@ -356,7 +356,7 @@ public class GenericUDTFGetSplits extends GenericUDTF {
try {
driver.compileAndRespond(query, true);
} catch (CommandProcessorException e) {
- throw new HiveException("Failed to create temp table: " + e.getException());
+ throw new HiveException("Failed to select from table [" + tableName + "]", e);
}
plan = driver.getPlan();