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


##########
modules/client/src/main/java/org/apache/ignite/internal/jdbc/JdbcStatement.java:
##########
@@ -734,16 +733,6 @@ public final void timeout(int timeout) throws SQLException 
{
     }
 
     private static SQLException toSqlException(CompletionException e) {
-        if (e.getCause() instanceof IgniteException) {
-            IgniteException cause = (IgniteException) e.getCause();
-            String message = cause.getMessage();
-
-            if (message != null) {
-                if (message.contains("Failed to parse query")) {
-                    return new SQLException("Sql query execution failed.", 
SqlStateCode.PARSING_EXCEPTION, e);
-                }
-            }
-        }
-        return new SQLException("Internal server error.", 
SqlStateCode.INTERNAL_ERROR, e);
+        return new SQLException(e.getCause());

Review Comment:
   it looks bad for me, we lose the code



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