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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org