kfaraz commented on code in PR #12680:
URL: https://github.com/apache/druid/pull/12680#discussion_r902767580


##########
sql/src/main/java/org/apache/druid/sql/http/SqlResource.java:
##########
@@ -196,7 +197,7 @@ public Response doPost(
       endLifecycle(sqlQueryId, lifecycle, timeout, remoteAddr, -1);
       return buildNonOkResponse(QueryTimeoutException.STATUS_CODE, timeout, 
sqlQueryId);
     }
-    catch (SqlPlanningException | ResourceLimitExceededException e) {
+    catch (SqlPlanningException | ResourceLimitExceededException | 
BadQueryContextException e) {

Review Comment:
   Would it make sense to just catch `BadQueryException` here instead of all 
its subclasses?



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