v.20.10Improvement

Proper Exception Message for Incorrect Number of Arguments in CAST

Proper exception message for wrong number of arguments of CAST. This closes #13992. #15029 (alexey-milovidov).
Improved error handling with a proper exception message when CAST is called with an incorrect number of arguments.

Why it matters

This feature addresses the issue where using the CAST function with the wrong number of arguments resulted in unclear or unhelpful error messages. By providing a proper exception message, it helps users quickly identify and correct their usage errors, improving debugging efficiency and user experience.

How to use it

No explicit action is required by users. The improved exception message is automatically provided when a CAST operation is performed with an incorrect number of arguments.