diff --git a/processing/src/main/java/org/apache/druid/query/aggregation/AggregatorFactory.java b/processing/src/main/java/org/apache/druid/query/aggregation/AggregatorFactory.java index 023cb1654e0..3e54f449d6c 100644 --- a/processing/src/main/java/org/apache/druid/query/aggregation/AggregatorFactory.java +++ b/processing/src/main/java/org/apache/druid/query/aggregation/AggregatorFactory.java @@ -87,7 +87,7 @@ public abstract class AggregatorFactory implements Cacheable */ public AggregatorAndSize factorizeWithSize(ColumnSelectorFactory metricFactory) { - return new AggregatorAndSize(factorize(metricFactory), getMaxIntermediateSize()); + return new AggregatorAndSize(factorize(metricFactory), guessAggregatorHeapFootprint(0)); } /**