itschrispeck commented on code in PR #16212:
URL: https://github.com/apache/pinot/pull/16212#discussion_r2175535970
##########
pinot-query-planner/src/main/java/org/apache/pinot/query/QueryEnvironment.java:
##########
@@ -280,7 +282,13 @@ public CompiledQuery compile(String sqlQuery,
SqlNodeAndOptions sqlNodeAndOption
if (plannerContext != null) {
plannerContext.close();
}
- throw QueryErrorCode.SQL_PARSING.asException("Error composing query
plan: " + t.getMessage(), t);
+ String message = t.getMessage();
+ if (message == null) {
+ message = "Null message from " + t.getClass().getSimpleName();
+ LOGGER.error("Query plan composing failed with null message. Exception
type: {}, SQL: {}, Stack trace: {}",
Review Comment:
Can this issue be solved with `-XX:-OmitStackTraceInFastThrow`?
--
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]