v.23.8Improvement

Fixed High Memory Consumption in Aggregator with Large max_block_size

Fixed memory consumption in Aggregator when max_block_size is huge. #51566 (Nikita Taranov).
Fixed memory consumption in Aggregator when max_block_size is huge.

Why it matters

This fix addresses excessive memory usage in the Aggregator component that occurred when the max_block_size setting was very large. It improves resource efficiency and stability for queries involving large blocks, preventing potential memory bloat.

How to use it

Users do not need to take any special action to enable the fix. It is automatically applied when running the updated version of ClickHouse. Queries with large max_block_size values will benefit from optimized memory consumption.