[Enhancement](Nereids) add more clear message when parse failed (#16056)
This commit is contained in:
@ -313,7 +313,7 @@ public class ConnectProcessor {
|
||||
&& ctx.getSessionVariable().isEnableNereidsPlanner()
|
||||
&& !ctx.getSessionVariable().enableFallbackToOriginalPlanner) {
|
||||
Exception exception = new Exception(
|
||||
String.format("Nereids cannot parse the SQL, and fallback disabled.\n\n%s",
|
||||
String.format("Nereids cannot parse the SQL, and fallback disabled. caused by: \n\n%s",
|
||||
nereidsParseException.getMessage()), nereidsParseException);
|
||||
// audit it and break
|
||||
handleQueryException(exception, auditStmt, null, null);
|
||||
|
||||
Reference in New Issue
Block a user