siddharthteotia commented on code in PR #10042:
URL: https://github.com/apache/pinot/pull/10042#discussion_r1061005236


##########
pinot-core/src/main/java/org/apache/pinot/core/transport/QueryRouter.java:
##########
@@ -130,6 +146,10 @@ public AsyncQueryResponse submitQuery(long requestId, 
String rawTableName,
         serverChannels.sendRequest(rawTableName, asyncQueryResponse, 
serverRoutingInstance, entry.getValue(),
             timeoutMs);
         asyncQueryResponse.markRequestSubmitted(serverRoutingInstance);
+
+        if (limitClausePresent && --limit == 0) {

Review Comment:
   query cancellation work can potentially be leveraged for that. 



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