peerdb icon indicating copy to clipboard operation
peerdb copied to clipboard

PG INET loses a subnet during CDC

Open ilidemi opened this issue 6 months ago • 0 comments

Steps to reproduce:

  1. create table test_inet(id serial primary key, i inet);
  2. insert into test_inet(i) values('10.0.0.0/32'::inet);
  3. Create a mirror from this PG into ClickHouse
  4. insert into test_inet(i) values('10.0.0.0/32'::inet);
  5. First value is 10.0.0.0/32, second becomes 10.0.0.0

In PostgresConnector.parseFieldFromPostgresOID the value is already a string without a subnet.

ilidemi avatar Jun 12 '25 07:06 ilidemi