v.19.14Improvement

Type Checks for Set Index Functions

Type checks for set index functions. Throw exception if function got a wrong type. This fixes fuzz test with UBSan. #6511 (Nikita Vasilev)
Introduced type checks for set index functions to ensure that these functions receive arguments of the correct type, throwing exceptions if types mismatch.

Why it matters

This feature addresses robustness issues by preventing invalid type usage in set index functions, thereby fixing failures detected by fuzz testing with UBSan and improving ClickHouse stability and error handling.

How to use it

Users do not need to enable anything explicitly; the type checks are automatically applied. If a set index function receives an argument of an incorrect type, ClickHouse will throw an exception to alert the user.