v.24.5Improvement

Update Error Code Usage for NUMBER_OF_ARGUMENTS_DOESNT_MATCH

Update the usage of error code NUMBER_OF_ARGUMENTS_DOESNT_MATCH by more accurate error codes when appropriate. #63406 (Yohann Jardin).
Improved error handling by replacing the generic error code NUMBER_OF_ARGUMENTS_DOESNT_MATCH with more precise and descriptive error codes in appropriate cases.

Why it matters

This change enhances the accuracy of error reporting in ClickHouse, making it easier for users to understand the specific cause of argument-related issues in their queries. It reduces ambiguity by providing more detailed error feedback, improving debugging and development efficiency.

How to use it

Users do not need to enable any settings to benefit from this improvement. The update is applied internally in ClickHouse and will automatically result in more accurate error messages when argument-related errors occur.