anandheritage opened a new pull request, #15966: URL: https://github.com/apache/pinot/pull/15966
When a segment’s map had already reached _resultSize, and a row arrived whose key was exactly equal to map.lastKey(), the condition key.compareTo(map.lastKey()) < 0 would evaluate to false, causing the update to be dropped. As a result, the stored aggregate for that key never increased—even though additional rows for that key existed. This leads to undercounted aggregates for keys that happen to be lexicographically largest at the moment the limit is reached. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org