dataroaring commented on code in PR #59585:
URL: https://github.com/apache/doris/pull/59585#discussion_r2666708429
##########
fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/StmtExecutionAction.java:
##########
@@ -174,7 +174,12 @@ private ResponseEntity
executeQuery(ActionAuthorizationInfo authInfo, boolean is
}
return ResponseEntityBuilder.ok(resultSet.getResult());
} catch (InterruptedException | ExecutionException e) {
- LOG.warn("failed to execute stmt", e);
+ Throwable cause = e.getCause() != null ? e.getCause() : e;
+ if (cause instanceof java.sql.SQLSyntaxErrorException) {
Review Comment:
Its a SQLSyntaxErrorException not NereidsException. I am not sure if we can
get more messages from stack trace for a SQLSyntaxErrorException.
--
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]