-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add boundary check for converting duckdb date/timestamps to PG dates/timestamps #653
base: main
Are you sure you want to change the base?
Conversation
@JelteF
If we dont to throw an error we can use the boundary values for out of range values but we should throw a Also if you have some tips on debugging across C/C++ boundary using gdb (VS code extension seems to not want to work), that would be really appreciated , was trying to walk throught the query lifecycle with pg_duckdb ? |
Thanks for the contribution! Some thoughts:
|
Also, do you know if this also fixes this issue? #629 If so we should include that in the tests. |
With my changes it throws out of bounds Error
|
Hmm, I guess that's better than returning something wrong. But it would be good if we actually converted infinity/-infinity correctly for dates and timestamps, because both databases support it. |
Postgres Only Supports date specific date range But DuckDb can return values outside this range , we should detect this and Either error out or pass boundary values.
Fixes #595