v.25.4Improvement

Support converting UInt128 to IPv6

Adding support for converting UInt128 to IPv6. This allows the bitAnd operation and arithmatics for IPv6 and conversion back to IPv6. Closes #76752. This allows the result from bitAnd operation on IPv6 to be converted back to IPv6, as well. See also #57707. #76928 (Muzammil Abdul Rehman).
Added support for converting UInt128 to IPv6, enabling bitwise and arithmetic operations on IPv6 addresses with conversion back to IPv6.

Why it matters

This feature allows users to perform bitwise bitAnd and arithmetic operations directly on IPv6 values by converting them to UInt128 and then back to IPv6. It resolves limitations related to manipulating IPv6 addresses in queries, enhancing flexibility and usability for network data processing.

How to use it

Users can apply bitwise and arithmetic operations such as bitAnd on IPv6 columns by leveraging the automatic or explicit conversion between IPv6 and UInt128. Conversion back to IPv6 is supported to obtain valid IPv6 results after operations.