You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to insert data into an IPv6 column. The real type is a FixedString(16) inside ClickHouse.
The Append function of the library requires the underlying type to be:
string
netip.Addr
net.IP
I would prefer to avoid manipulating my array and insert the data directly.
Describe the solution you'd like
When looking at the IPv4 column, there is a way to pass a uint32
Thanks for this request. This will likely not be a priority for me to implement in the upcoming weeks. If someone from the community wants to work on it - I am happy to merge PR.
Hello!
Thank you for this great library!
Is your feature request related to a problem? Please describe.
I am trying to insert data into an
IPv6
column. The real type is aFixedString(16)
inside ClickHouse.The
Append
function of the library requires the underlying type to be:I would prefer to avoid manipulating my array and insert the data directly.
Describe the solution you'd like
When looking at the IPv4 column, there is a way to pass a uint32
clickhouse-go/lib/column/ipv4.go
Line 74 in 558434c
(this was added with #966)
For IPv6, strings are currently parsed and then the bytes are inserted.
I would like to be able to pass a [16]byte or a []uint8 (byte array).
Describe alternatives you've considered
Ended up using
netip.AddrFrom16()
but I'd like to avoid a cast or pass a pointer to the byte array I already have.The text was updated successfully, but these errors were encountered: