Currently the unspilling declares memory allocation in system context (com.facebook.presto.operator.aggregation.builder.SpillableHashAggregationBuilder#mergeFromDisk, com.facebook.presto.operator.aggregation.builder.SpillableHashAggregationBuilder#mergeFromDiskAndMemory contain operatorContext.getSystemMemoryContext().newAggregatedMemoryContext()).
Instead, it should allocate in "normal" memory pool (via operator's context).
Currently the unspilling declares memory allocation in system context (
com.facebook.presto.operator.aggregation.builder.SpillableHashAggregationBuilder#mergeFromDisk
,com.facebook.presto.operator.aggregation.builder.SpillableHashAggregationBuilder#mergeFromDiskAndMemory
containoperatorContext.getSystemMemoryContext().newAggregatedMemoryContext()
).Instead, it should allocate in "normal" memory pool (via operator's context).
cc @losipiuk