gortiz commented on code in PR #15919: URL: https://github.com/apache/pinot/pull/15919#discussion_r2113593286
########## pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java: ########## @@ -120,7 +120,7 @@ public static SqlNodeAndOptions compileToSqlNodeAndOptions(String sql) sqlNodeAndOptions.setParseTimeNs(System.nanoTime() - parseStartTimeNs); return sqlNodeAndOptions; } catch (Throwable e) { - throw new SqlCompilationException("Caught exception while parsing query: " + sql, e); + throw new SqlCompilationException("Caught exception while parsing query: " + sql + ": " + e.getMessage(), e); Review Comment: This is mandatory, otherwise the message doesn't include the actual compilation issue -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org