Repository: hive
Updated Branches:
  refs/heads/master c159f087b -> 7f43dcb39


HIVE-14368: ThriftCLIService.GetOperationStatus should include exception's 
stack trace to the error message (Zhihai Xu via Jimmy Xiang)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/7f43dcb3
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/7f43dcb3
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/7f43dcb3

Branch: refs/heads/master
Commit: 7f43dcb395258810b693400507bee3c0e612fcc2
Parents: c159f08
Author: Zhihai Xu <zhihaixu2...@gmail.com>
Authored: Wed Aug 3 07:40:56 2016 -0700
Committer: Jimmy Xiang <jxi...@apache.org>
Committed: Wed Aug 3 07:42:57 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hive/service/cli/thrift/ThriftCLIService.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/7f43dcb3/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
----------------------------------------------------------------------
diff --git 
a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java 
b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
index 886492a..2938338 100644
--- a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
+++ b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
@@ -641,7 +641,8 @@ public abstract class ThriftCLIService extends 
AbstractService implements TCLISe
       if (opException != null) {
         resp.setSqlState(opException.getSQLState());
         resp.setErrorCode(opException.getErrorCode());
-        resp.setErrorMessage(opException.getMessage());
+        resp.setErrorMessage(org.apache.hadoop.util.StringUtils.
+            stringifyException(opException));
       }
       resp.setStatus(OK_STATUS);
     } catch (Exception e) {

Reply via email to