Closed patrickdung closed 1 year ago
Thanks for the report @patrickdung.
In JDBC driver, IPv4 is mapped to java.net.Inet4Address
and similarly java.net.Inet6Address
for IPv6. Database client usually don't recognize them, hence toString()
was called for rendering and that's where the leading slash came from. If you prefer String data type, you may change your query to something like select toIPv4('127.0.0.1')::String, toIPv6('::1')::String
.
Describe the bug
Backend is Clickhouse Using helm chart
Here's CH schema
The record should be fine when I use CH cli to view it. When I use DBeaver via JDBC http, for kubernetes_pod_ip and kubernetes_pod_ips, there is a leading slash.
If I use SQLworkBench, the leading slash exists for kubernetes_pod_ips (Array of IPv4)..
For CH, if I use String data type instead of IPv4, it are not leading slash.
Steps to reproduce
Expected behaviour
No leading slash is added
Code example
See above
Error log
Configuration
Environment
ClickHouse server
CREATE TABLE
statements for tables involved: see above