v.23.8Improvement
Add modulo and division support for tuples in ClickHouse
Add support formodulo,intDiv,intDivOrZerofor tuples by distributing them across tuple's elements. #52758 (Yakov Olkhovskiy).
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 functionsmodulo, 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.