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).
Why it matters
This fix addresses a rare crash scenario caused by an assertion failure in the allocator when handlingNaN 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 handleNaN values passed as the last argument to bar with a standard exception instead of causing an assertion failure.