AMashenkov commented on code in PR #2271:
URL: https://github.com/apache/ignite-3/pull/2271#discussion_r1254135094


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/ExecutionServiceImpl.java:
##########
@@ -311,11 +310,11 @@ private static RuntimeException 
convertDdlException(Throwable e) {
         }
 
         if (e instanceof IgniteInternalCheckedException) {
-            return new IgniteInternalException(DDL_EXEC_ERR, "Failed to 
execute DDL statement [stmt=" /*+ qry.sql()*/
+            return new IgniteInternalException(RUNTIME_EXECUTION_ERR, "Failed 
to execute DDL statement [stmt=" /*+ qry.sql()*/
                     + ", err=" + e.getMessage() + ']', e);
         }
 
-        return (e instanceof RuntimeException) ? (RuntimeException) e : new 
SqlException(DDL_EXEC_ERR, e);
+        return (e instanceof RuntimeException) ? (RuntimeException) e : new 
SqlException(RUNTIME_EXECUTION_ERR, e);

Review Comment:
   Part of stacktrace could be lost if `e` was unwrapped from 
CompletionException few lines above `e = e.getCause();`
   BTW, ExecutionException is never unwrapped. Seems, it is just missed.



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to