LakshSingla commented on code in PR #16119:
URL: https://github.com/apache/druid/pull/16119#discussion_r1531740540
##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/statistics/ClusterByStatisticsCollectorImpl.java:
##########
@@ -443,7 +449,9 @@ void downSample()
bucketHolder.keyCollector.downSample();
newTotalRetainedBytes += bucketHolder.updateRetainedBytes();
- if (i == sortedHolders.size() - 1 || sortedHolders.get(i +
1).rhs.retainedBytes > bucketHolder.retainedBytes ||
bucketHolder.keyCollector.estimatedRetainedKeys() <= 1) {
+ if ((bucketHolder.keyCollector.estimatedRetainedKeys() <= 1) ||
Review Comment:
Can you add the reasoning for the if..else here?
--
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]