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 support for writing Lists/Arrays to SQLite via JSON conversion #67

Merged

Conversation

sgrebnov
Copy link
Collaborator

@sgrebnov sgrebnov commented Aug 22, 2024

SQLite does not support Arrays natively so PRs adds fallback on using JSON column type and serialization to JSON string for Arrow List types. With this change previously unsupported types will be stored and retrieved as Ut8 string when queried directly or automatically converted back to Arrow List type when using casting layer: Add List types parsing support to schema cast

List, LargeList, FixedSizeList are supported

@sgrebnov sgrebnov force-pushed the sgrebnov/lists-support branch from 1855a6d to 2ea7ec5 Compare August 22, 2024 21:17
@sgrebnov sgrebnov force-pushed the sgrebnov/lists-support branch from a94a73c to 0726a9d Compare August 23, 2024 15:32
@sgrebnov sgrebnov changed the title Sqlite Lists support WIP Add support for Lists/Arrays in SQLite via JSON conversion Aug 23, 2024
@sgrebnov sgrebnov marked this pull request as ready for review August 23, 2024 15:40
@sgrebnov sgrebnov changed the title Add support for Lists/Arrays in SQLite via JSON conversion Add support for writing Lists/Arrays to SQLite via JSON conversion Aug 23, 2024
@phillipleblanc phillipleblanc merged commit 1aa206c into datafusion-contrib:main Aug 25, 2024
3 checks passed
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.

3 participants