v.25.6Improvement

Function reverse now supports Tuple data type

Function reverse now supports Tuple data type. Closes #80053. #80083 (flynn).
The reverse function in ClickHouse has been extended to support the Tuple data type.

Why it matters

This feature allows users to reverse the order of elements within tuples using the reverse function, enabling more flexible manipulation of tuple data. It solves the limitation where reverse could not be applied to tuples, enhancing data processing capabilities.

How to use it

Users can apply the reverse function directly to tuple values in their queries. For example:

SELECT reverse(tuple(1, 2, 3))

This will return the tuple with elements in reversed order.