v.21.2Improvements

Fix RIGHT and FULL JOIN Issues with Aggregate Functions in ClickHouse

Fix issues with RIGHT and FULL JOIN of tables with aggregate function states. In previous versions exception about cloneResized method was thrown. #18818 (templarzq).
Fix issues with RIGHT and FULL JOIN operations involving tables that contain aggregate function states, preventing exceptions related to the cloneResized method.

Why it matters

In previous versions of ClickHouse, performing RIGHT JOIN or FULL JOIN on tables containing aggregate function states caused exceptions due to improper handling in the cloneResized method. This fix improves query stability and correctness when joining tables with aggregate states.

How to use it

Users can perform RIGHT JOIN and FULL JOIN on tables including aggregate function states without encountering exceptions; no additional configuration is needed as this is a bug fix.