Skip to content

refactor: extract a new crate arrow-pg #89

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

Merged
merged 3 commits into from
Jun 15, 2025
Merged

refactor: extract a new crate arrow-pg #89

merged 3 commits into from
Jun 15, 2025

Conversation

sunng87
Copy link
Member

@sunng87 sunng87 commented Jun 15, 2025

Fixes #88

In this change, I extracted all data encoding and type mapping code from datafusion-postgres crate to a new one called arrow-pg.

The interface of arrow-pg is designed to work with arrow data and pgwire encoders, which is backed by ToSql from postgres-types and ToSqlText from pgwire itself. This also means we won't include datafusion APIs like DFSchema, RecordBatchStream and ScalarValue in this library, code related to these types are kept in datafusion-postgres for now. But in next patch, I have plan to add a feature gate datafusion to arrow-pg so we can include them optionally, for those using arrow with datafusion.

This is just the first version of arrow-pg, APIs will definitely change to support new features, encoding options.

@sunng87 sunng87 merged commit 199966f into master Jun 15, 2025
6 checks passed
@sunng87 sunng87 deleted the refactor/arrow-pg branch June 15, 2025 20:27
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.

Extracting arrow-pg library
1 participant