leventov commented on a change in pull request #8157: Enum of ResponseContext 
keys
URL: https://github.com/apache/incubator-druid/pull/8157#discussion_r307378885
 
 

 ##########
 File path: 
processing/src/main/java/org/apache/druid/query/scan/ScanQueryEngine.java
 ##########
 @@ -266,7 +261,7 @@ public void cleanup(Iterator<ScanResultValue> iterFromMake)
   private long calculateLimit(ScanQuery query, ResponseContext responseContext)
   {
     if (query.getOrder().equals(ScanQuery.Order.NONE)) {
-      return query.getLimit() - (long) 
responseContext.get(ResponseContext.CTX_COUNT);
+      return query.getLimit() - (long) 
responseContext.get(ResponseContext.Key.COUNT);
     }
     return query.getLimit();
 
 Review comment:
   Please rename this property to "scanRowsLimit" for clarity.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to