Skip to content
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

feat(dtypes): fall back to dt.unknown for unknown types #9567

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

gforsyth
Copy link
Member

Description of changes

We've had a number of issues where we haven't exposed a mapping to a
particular (usually Postgres) dtype.

We'll still have requests to provide useful mappings, depending on the
upstream dtype, but this should prevent users being unable to even open
a table because there's an unknown / user-defined dtype present in the
table.

To test, I've removed the special handling for the vector and
ts.vector types that we were explicitly mapping to dt.unknown.

xref #9511 -- we probably still want to pick a specific dtype to map the BIT type to so that the data are REPRd, but this will prevent load failures (there and elsewhere).

We've had a number of issues where we haven't exposed a mapping to a
particular (usually Postgres) dtype.

We'll still have requests to provide useful mappings, depending on the
upstream dtype, but this should prevent users being unable to even open
a table because there's an unknown / user-defined dtype present in the
table.

To test, I've removed the special handling for the `vector` and
`ts.vector` types that we were explicitly mapping to `dt.unknown`.
@cpcloud cpcloud added this to the 9.2 milestone Jul 13, 2024
@cpcloud cpcloud added feature Features or general enhancements refactor Issues or PRs related to refactoring the codebase ux User experience related issues datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) labels Jul 13, 2024
@cpcloud cpcloud enabled auto-merge (squash) July 13, 2024 18:21
@cpcloud cpcloud merged commit 6e0b5f5 into ibis-project:main Jul 13, 2024
79 of 84 checks passed
gforsyth added a commit that referenced this pull request Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) feature Features or general enhancements refactor Issues or PRs related to refactoring the codebase ux User experience related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants