deniskuzZ commented on code in PR #5164:
URL: https://github.com/apache/hive/pull/5164#discussion_r1557544737


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLTask.java:
##########
@@ -85,7 +86,24 @@ public int execute() {
       } else {
         throw new IllegalArgumentException("Unknown DDL request: " + 
ddlDesc.getClass());
       }
-    } catch (Throwable e) {
+    } catch(HiveException e){
+      int excpErrorCode = ReplUtils.handleException(work.isReplication(), e, 
work.getDumpDirectory(),
+              work.getMetricCollector(), getName(), conf);
+      if(excpErrorCode == 10241){
+        return excpErrorCode;
+      }else{

Review Comment:
   that is the same as Throwable handling, can't you combine both 



-- 
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