clintropolis commented on a change in pull request #11617:
URL: https://github.com/apache/druid/pull/11617#discussion_r691807300
##########
File path:
extensions-core/stats/src/main/java/org/apache/druid/query/aggregation/variance/VarianceBufferAggregator.java
##########
@@ -238,7 +238,9 @@ public void aggregate(ByteBuffer buf, int position)
buf.putDouble(position + NVARIANCE_OFFSET, holder2.nvariance);
return;
}
-
+ if (holder2.count == 0) {
Review comment:
I think this early return could happen right after
`Preconditions.checkState(holder2 != null);` on line 233
--
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]