v.21.2Improvements

Fix misleading NaN exception in function bar

The exception when function bar is called with certain NaN argument may be slightly misleading in previous versions. This fixes #19088. #19107 (alexey-milovidov).
Improved error message for the bar function when called with certain NaN arguments.

Why it matters

This update addresses an issue where the exception thrown by the bar function with certain NaN inputs was misleading. The fix ensures that error reporting is clearer and more accurate, helping users diagnose and handle errors effectively.

How to use it

Users do not need to take any specific action to enable this fix; it is applied automatically in the updated ClickHouse version. Simply use the bar function as usual, and you will receive improved error messages when NaN arguments cause exceptions.