[Enhancement](Nereids) add more clear message when parse failed (#16056)

This commit is contained in:
mch_ucchi
2023-01-18 22:19:46 +08:00
committed by GitHub
parent cbcd5228b7
commit 78ba446487

View File

@ -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);