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

fix: Don't panic on unsupported data insert with Postgres #211

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

peasee
Copy link
Collaborator

@peasee peasee commented Dec 31, 2024

🗣 Description

  • Adds a SchemaValidator implementation for PostgresConnection, used during TableFactory creation time to validate the incoming schema.

Although Postgres already had a schema validation in .get_schema(), this only runs during queries not during inserts. This then allows panics to throw from trying to insert a type that is not supported.

@peasee peasee added the bug Something isn't working label Dec 31, 2024
@peasee peasee self-assigned this Dec 31, 2024
@peasee peasee merged commit dc06251 into spiceai Dec 31, 2024
3 checks passed
@peasee peasee deleted the fix/postgres-schema-panics branch December 31, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants