Add test that runs DuckDB its test_all_types function#577
Conversation
There was a problem hiding this comment.
This is a bug! We should be returning:
| hugeint | 0 | |
| hugeint | -170141183460469231731687303715884105728 |
There was a problem hiding this comment.
This is displayed pretty weirdly. Maybe we should not use the char type for this, but instead upscale to a regular int. For now I added this as a limitation to the #575 PR.
There was a problem hiding this comment.
All of these underflow currently. I think we should either truncate or throw an error in this case.
There was a problem hiding this comment.
the two dates in the middle are displayed by duckdb as infinity and -infinity, same for the timestamp_array below. Would be worth looking into what is up with those.
There was a problem hiding this comment.
Turns out infinity and -infinity are valid values for dates/timestamps in both Postgres and DuckDB. But based on this our conversion of these is lacking.
0ccb600 to
18b655d
Compare
b259a10 to
f7371be
Compare
This is an easy way to test conversion from Postgres to DuckDB for types that don't have an equivalent in Postgres. It also gives us an easy todo list of types that we don't support yet.
f7371be to
ba4fc36
Compare
This is an easy way to test conversion from Postgres to DuckDB for types
that don't have an equivalent in Postgres.
It also gives us an easy todo list of types that we don't support yet.