22.12

```sql
SELECT
    toIPv6OrDefault('::ffff:10.10.10.10') AS ipv6,
    cutIPv6(ipv6, 10, 1)

┌─ipv6───────────────┬─cutIPv6(toIPv6OrDefault('::ffff:10.10.10.10'), 10, 1)─┐
│ ::ffff:10.10.10.10 │ ::ffff:10.10.10.0                                     │
└────────────────────┴───────────────────────────────────────────────────────┘
```

22.13.1.1476

```sql
SELECT
    toIPv6OrDefault('::ffff:10.10.10.10') AS ipv6,
    cutIPv6(ipv6, 10, 1)
Code: 43. DB::Exception: Illegal type IPv6 of argument 1 of function cutIPv6, expected FixedString(16): While processing toIPv6OrDefault('::ffff:10.10.10.10') AS ipv6, cutIPv6(ipv6, 10, 1). (ILLEGAL_TYPE_OF_ARGUMENT)
```

https://github.com/ClickHouse/ClickHouse/pull/45018
{
        const auto & col_type_name = arguments[0];
        const ColumnPtr & column = col_type_name.column;
        if (const auto * col_in = checkAndGetColumn<ColumnIPv4>(*column))
        {
            auto col_res = ColumnIPv6::create();
            auto & vec_res = col_res->getData();
            vec_res.resize(col_in->size());
            const auto & vec_in = col_in->getData();
            for (size_t i = 0; i < vec_res.size(); ++i)
                mapIPv4ToIPv6(vec_in[i], reinterpret_cast<UInt8 *>(&vec_res[i].toUnderType()));
            return col_res;
        }
        if (const auto * col_in = checkAndGetColumn<ColumnUInt32>(*column))
        {
            auto col_res = ColumnFixedString::create(IPV6_BINARY_LENGTH);
            auto & vec_res = col_res->getChars();
            vec_res.resize(col_in->size() * IPV6_BINARY_LENGTH);
            const auto & vec_in = col_in->getData();
            for (size_t out_offset = 0, i = 0; out_offset < vec_res.size(); out_offset += IPV6_BINARY_LENGTH, ++i)
                mapIPv4ToIPv6(vec_in[i], &vec_res[out_offset]);
            return col_res;
        }
        throw Exception(
            ErrorCodes::ILLEGAL_COLUMN,
            "Illegal column {} of argument of function {}", arguments[0].column->getName(), getName()
        );
    }
private:
    static void mapIPv4ToIPv6(UInt32 in, UInt8 * buf)