Replies: 8 comments
-
Quick questions, IPv6 addresses are 64 bits, so would |
Beta Was this translation helpful? Give feedback.
-
According to this Wikipedia article: "IPv6 uses 128-bit addresses, theoretically allowing 2^128, or approximately 3.4×10^38 total addresses." |
Beta Was this translation helpful? Give feedback.
-
I think I have found a way to work with them, but it is a cumbersome 2-step process.
If you are joining these on a CIDR range as I am, you will then need to adjust the range by the same constant as you did in the second step. Then you can join them as you normally would with the BETWEEN operator. Also, it turns out that, in practice, most (but not all) values fall below this threshold. |
Beta Was this translation helpful? Give feedback.
-
Oh my mistake, sorry. |
Beta Was this translation helpful? Give feedback.
-
I'd like to bump up this discussion. I wonder if there is any techincal blockers to support UHUGEINT? having the ability to store IPv6 really unblocks DuckDB's potential in network analytics and applications. |
Beta Was this translation helpful? Give feedback.
-
Maybe this can be added to our INET extension instead? It seems like there is some support for IPv6 code, but it's incomplete. I think this would be preferred over adding the UHUGEINT type. |
Beta Was this translation helpful? Give feedback.
-
I think UUIDs can also be abused to represent them: (ddb:get-result
(ddb:q "SELECT ?::uuid AS address"
(fuuid:from-integer
(parse-integer (remove #\: "2001:db8:85a3:8d3:1319:8a2e:370:7348")
:radix 16)))
'address 0)
;; => #<FRUGAL-UUID:UUID 0002001d-b885-a38d-3131-98a2e3707348> |
Beta Was this translation helpful? Give feedback.
-
Is anyone known to be working on adding ipv6 to the inet extension already? |
Beta Was this translation helpful? Give feedback.
-
Curious when the data type UHUGEINT will be supported? I find it helpful for dealing with IPV6 addresses.
Beta Was this translation helpful? Give feedback.
All reactions