Class AdaptivePartitioning

java.lang.Object
io.trino.sql.planner.optimizations.AdaptivePartitioning
All Implemented Interfaces:
AdaptivePlanOptimizer, PlanOptimizer

public class AdaptivePartitioning extends Object implements AdaptivePlanOptimizer
This optimizer is responsible for changing the partition count of hash partitioned fragments at runtime. This uses the runtime output stats from FTE to determine estimated memory consumption and changes the partition count if the estimated memory consumption is higher than the runtimeAdaptivePartitioningMaxTaskSizeInBytes * current partitionCount.