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

Handle invalid data types for Postgres #191

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

phillipleblanc
Copy link
Collaborator

Leverages the invalid_type_action support that was added for DuckDB to better handle when invalid types are encountered for Postgres.

This PR will either error, warn or ignore columns that it doesn't know how to handle in the get_schema method. As a further safeguard, the rows_to_arrow function will no longer panic if there is an unsupported data type, returning an error instead.

@phillipleblanc phillipleblanc merged commit 58baab0 into spiceai Dec 4, 2024
3 checks passed
@phillipleblanc phillipleblanc deleted the phillip/241204-invalid-type-pg branch December 4, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants