v.20.7Improvement

Minor Optimization in PipelineExecutor Loop Logic

Minor optimization in Processors/PipelineExecutor: breaking out of a loop because it makes sense to do so. #13058 (Mark Papadakis).
Optimized the Processors/PipelineExecutor by introducing an early loop exit to improve processing efficiency.

Why it matters

The change aims to enhance performance by breaking out of a loop when further iterations are unnecessary, reducing CPU cycles and improving execution speed in query processing pipelines.

How to use it

This optimization is applied internally within ClickHouse’s processing engine and requires no action from users to benefit from the improved performance.