Handle dates that underflow differently #595
Labels
bug
Something isn't working
good first issue
Good for newcomers
incorrect result
Bugs that return incorrect data
types
Issues related to type conversions
Description
DuckDB dates can be further into the past than Postgres dates. We should either truncate the date to the lowest possible date that's representable in Postgres, or we should throw an error. Underflowing and returning a date in the future is the worst possible behavior.
This is a query that creates these underflowing dates:
Example of underflowing dates are in this test:
pg_duckdb/test/regression/expected/test_all_types.out
Lines 42 to 47 in 02ebeae
Found by #577
The text was updated successfully, but these errors were encountered: