kgyrtkirk commented on code in PR #16583:
URL: https://github.com/apache/druid/pull/16583#discussion_r1635860678
##########
sql/src/main/java/org/apache/druid/sql/calcite/planner/DruidPlanner.java:
##########
@@ -380,13 +380,7 @@ public static DruidException translateException(Exception
e)
}
}
- return DruidException.forPersona(DruidException.Persona.DEVELOPER)
- .ofCategory(DruidException.Category.UNCATEGORIZED)
- .build(
- inner,
- "Unable to parse the SQL, unrecognized error
from calcite: [%s]",
- inner.getMessage()
- );
+ return InvalidSqlInput.exception(inner.getMessage());
Review Comment:
this exception creation clips the stacktrace - it only retains the source
exceptions message
--
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]