saihemanth-cloudera commented on code in PR #5319:
URL: https://github.com/apache/hive/pull/5319#discussion_r1737279659


##########
service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java:
##########
@@ -124,14 +139,45 @@ public void runInternal() throws HiveSQLException {
       }
     } catch (CommandProcessorException e) {
       setState(OperationState.ERROR);
-      throw toSQLException("Error while processing statement", e);
+      throw toSQLException("Error while processing statement: " + 
e.toString(), e);

Review Comment:
   Why do we need to type cast the exception to string? We are anyway 
extracting message, Sqlstate, and response code from the exception.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to