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
{{ message }}
Repository navigation
Date32 values are not correctly read from PostgreSQL #73084
comp-postgresqlPostgreSQL-specific integration (table engine/function, logical replication bridge).fuzzProblem found by one of the fuzzerspotential bugTo be reviewed by developers and confirmed/rejected.unexpected behaviourResult is unexpected, but not entirely wrong at the same time.
I ran into the exact same problem where the date 1950-01-01 stored in PostgreSQL is read as 2129-06-07 in ClickHouse. I guess ClickHouse would just need to default to Date32 whenever dealing with a PostgreSQL DATE column.
comp-postgresqlPostgreSQL-specific integration (table engine/function, logical replication bridge).fuzzProblem found by one of the fuzzerspotential bugTo be reviewed by developers and confirmed/rejected.unexpected behaviourResult is unexpected, but not entirely wrong at the same time.
Activity
bikeshedder commentedon Jun 4, 2025
I ran into the exact same problem where the date
1950-01-01stored in PostgreSQL is read as2129-06-07in ClickHouse. I guess ClickHouse would just need to default toDate32whenever dealing with a PostgreSQLDATEcolumn.bikeshedder commentedon Jun 4, 2025
I'm storing dates in the range 1950-01-01 ... 2100-01-01 in my PostgreSQL database. It's not pretty but this workaround works for me at the moment:
It's far from pretty, but it works. I got lucky that my date ranges fit in a 16 bit date value so I can use that workaround.
Fix PostgreSQL Date32 values not being correctly read
Fix PostgreSQL Date32 values not being correctly read