alex-plekhanov commented on code in PR #13089:
URL: https://github.com/apache/ignite/pull/13089#discussion_r3187181134


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/rel/RootNode.java:
##########
@@ -324,9 +321,7 @@ private void checkException() {
         if (e == null)
             return;
 
-        if (e instanceof IgniteSQLException)
-            throw (IgniteSQLException)e;
-        else
-            throw new IgniteSQLException("An error occurred while query 
executing - " + e.getMessage(), IgniteQueryErrorCode.UNKNOWN, e);
+        throw new IgniteSQLException("An error occurred while query executing 
- " + e.getMessage(),
+            e instanceof IgniteSQLException ? 
((IgniteSQLException)e).statusCode() : IgniteQueryErrorCode.UNKNOWN, e);

Review Comment:
   Here repacking is required to have correct stack trace in exception. WIthout 
repacking we just have cancellation stack trace.



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

Reply via email to