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


##########
modules/client-handler/src/main/java/org/apache/ignite/client/handler/JdbcQueryEventHandlerImpl.java:
##########
@@ -272,10 +275,21 @@ public CompletableFuture<JdbcMetaPrimaryKeysResult> 
primaryKeysMetaAsync(JdbcMet
      * @return StringWriter filled with exception.
      */
     private StringWriter getWriterWithStackTrace(Throwable t) {
+        String message = null;
+        if (t instanceof CompletionException) {
+            if (t.getCause() instanceof IgniteException
+                    || t.getCause() instanceof CalciteContextException
+                    || t.getCause() instanceof QueryValidationException) {
+                message = t.getCause().getMessage();
+            }
+        }

Review Comment:
   ```suggestion
           if (t instanceof CompletionException) {
               message = t.getCause().getMessage();
           }
   ```



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