v.23.8Improvement

Add modulo and division support for tuples in ClickHouse

Add support for modulo, intDiv, intDivOrZero for tuples by distributing them across tuple's elements. #52758 (Yakov Olkhovskiy).
Added support for modulo, intDiv, and intDivOrZero functions to operate element-wise on tuples in ClickHouse.

Why it matters

This feature enables users to apply integer division and modulo operations directly to tuples by distributing the operation across each element. It simplifies expressions and improves code readability when working with tuple data types that require these arithmetic operations element-wise.

How to use it

Use the functions modulo, intDiv, or intDivOrZero directly on tuple values as you would on scalar integers. The functions will automatically apply the operation to each element of the tuple separately.