v.19.5Improvement

Added Restriction to the Multimatch Functions Which Requires String Size to Fit into Unsigned Int

Added restriction to the multiMatch functions which requires string size to fit into unsigned int. Also added the number of arguments limit to the multiSearch functions. #4834 (Danila Kutenin)
Added input size and argument count restrictions to multiMatch and multiSearch functions in ClickHouse.

Why it matters

This feature introduces limits on the string size parameter for multiMatch functions and the number of arguments for multiSearch functions. These restrictions prevent potential issues caused by overly large inputs, ensuring better stability and predictable performance when using these functions.

How to use it

Users need to ensure that the string length passed to the multiMatch functions fits within an unsigned int size limit, and that the number of arguments to multiSearch functions does not exceed the enforced limit. No additional configuration is required; the restrictions are automatically applied in the functions.