[
https://issues.apache.org/jira/browse/HIVE-6154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864678#comment-13864678
]
Thejas M Nair commented on HIVE-6154:
-------------------------------------
+1
> HiveServer2 returns a detailed error message to the client only when the
> underlying exception is a HiveSQLException
> -------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-6154
> URL: https://issues.apache.org/jira/browse/HIVE-6154
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 0.13.0
> Reporter: Vaibhav Gumashta
> Assignee: Vaibhav Gumashta
> Fix For: 0.13.0
>
> Attachments: HIVE-6154.1.patch, HIVE-6154.2.patch
>
>
> In ThriftCLIService, if any of the API calls error out, the server API tries
> to send back a detailed error response by trying to extract information from
> the caught exception e like - HiveSQLException.toTStatus(e). However, within
> the HiveSQLException#toTStatus method, the detailed error info (sqlState,
> errorCode, errorMessage) is sent back only if the caught exception is an
> instance of HiveSQLException, otherwise only the error status is set. For
> other exceptions as well, we can set the error message in the response in
> addition to setting the error status to help in debugging.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)