hmangla98 commented on a change in pull request #2552:
URL: https://github.com/apache/hive/pull/2552#discussion_r680867670



##########
File path: 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java
##########
@@ -235,10 +235,7 @@ public WarehouseInstance run(String command) throws 
Throwable {
       driver.run(command);
       return this;
     } catch (CommandProcessorException e) {
-      if (e.getCause() != null) {
-        throw  e.getCause();
-      }
-      throw e;
+      throw e.getCause();

Review comment:
       Reverted.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to