v.22.9Improvement
Disable Projection in Grouping Set to Fix Incorrect Results
Disable projection when grouping set is used. It generated wrong result. This fixes #40635. #40726 (Amos Bird).
Why it matters
The feature addresses an issue where applying projection optimizations during queries withGROUPING SET caused incorrect result generation. Disabling projections for such queries ensures accurate aggregation results, improving correctness and reliability.How to use it
This fix is applied automatically in ClickHouse starting from the version including this change. Users do not need to take any manual action; the system disables projections internally when processing queries withGROUPING SET.