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

Add Structs support for SQLite #70

Merged
merged 5 commits into from
Aug 26, 2024

Conversation

sgrebnov
Copy link
Collaborator

@sgrebnov sgrebnov commented Aug 25, 2024

SQLite does not support Structs natively so PRs adds fallback on using JSON column type and serialization to JSON string for Arrow struct type.

With this change previously unsupported Arrow Struct type will be stored and retrieved as Utf8 string when queried directly or automatically converted to Arrow Struct type when using casting layer: spiceai/datafusion-federation#16

Integration tests for struct will be enabled after casting PR is merged and reference is updated: spiceai/datafusion-federation#16

PR also switches from own try_cast_to implementation totry_cast_to exposed by datafusion-federation

@sgrebnov sgrebnov merged commit 23965d8 into datafusion-contrib:main Aug 26, 2024
3 checks passed
@sgrebnov sgrebnov self-assigned this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants