gianm opened a new pull request, #14567:
URL: https://github.com/apache/druid/pull/14567

   There are two ways of estimating heap footprint of an Aggregator:
   
   1) AggregatorFactory#guessAggregatorHeapFootprint
   2) AggregatorFactory#factorizeWithSize + Aggregator#aggregateWithSize
   
   When the second path is used, the default implementation of 
factorizeWithSize is now updated to delegate to guessAggregatorHeapFootprint, 
making these equivalent. The old logic used getMaxIntermediateSize, which is 
less accurate.
   
   Also fixes a bug where, when using the second path, calling 
factorizeWithSize on PassthroughAggregatorFactory would fail because 
getMaxIntermediateSize was not implemented. (There is no buffer aggregator, so 
there would be no need.)


-- 
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]

Reply via email to