v.21.1Improvements

Fixed NaN Assertion Error in Allocator for Function Bar

Fixed assertion error inside allocator in case when last argument of function bar is NaN. Now simple ClickHouse's exception is being thrown. This fixes #17876. #18520 (Nikita Mikhaylov).
Fixed an assertion error inside the allocator that occurred when the last argument of the function bar is NaN, replacing it with a standard ClickHouse exception.

Why it matters

This fix addresses a rare crash scenario caused by an assertion failure in the allocator when handling NaN values as the last argument of the bar function. It improves stability and robustness by ensuring that a proper ClickHouse exception is thrown instead of an internal error, facilitating better error handling and diagnosis for users.

How to use it

Users do not need to enable anything explicitly. The fix is applied internally, and upon upgrading to this version, the system will handle NaN values passed as the last argument to bar with a standard exception instead of causing an assertion failure.