walterddr commented on code in PR #11944:
URL: https://github.com/apache/pinot/pull/11944#discussion_r1382028886


##########
pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotClientRequest.java:
##########
@@ -316,12 +316,22 @@ private BrokerResponse executeSqlQuery(ObjectNode 
sqlRequestJson, HttpRequesterI
         try (RequestScope requestStatistics = 
Tracing.getTracer().createRequestScope()) {
           return _requestHandler.handleRequest(sqlRequestJson, 
sqlNodeAndOptions, httpRequesterIdentity,
               requestStatistics, httpHeaders);
+        } catch (Exception e) {
+          LOGGER.error("Error handling DQL request:\n{}\nException: {}", 
sqlRequestJson,
+              QueryException.getTruncatedStackTrace(e));
+          throw e;

Review Comment:
   @xiangfu0 any idea what kind of error we should wrap and rethrow here? 
simply pass through seems a bit less informative than I thought of but i 
couldn't think of a suitable one



-- 
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]

Reply via email to