-
Notifications
You must be signed in to change notification settings - Fork 555
feat: add column mapping support when reading tables #3954
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
base: main
Are you sure you want to change the base?
Conversation
|
ACTION NEEDED delta-rs follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
|
|
||
| if ( | ||
| table_protocol.reader_features | ||
| and "columnMapping" in table_protocol.reader_features | ||
| ): | ||
| raise DeltaProtocolError( | ||
| "The table requires reader feature 'columnMapping' " | ||
| "but this is not supported using pyarrow Datasets." | ||
| ) | ||
|
|
||
| if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed? The pr itself doesn't provide support for reading column mapping with pyarrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My primary use case is loading delta tables with datafusion (in python not rust), so must have missed it.
Will look into adding support for reading with pyarrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened a pr to arrow apache/arrow#48289, once that is merged we can support column mapping in datasets.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3954 +/- ##
==========================================
- Coverage 26.24% 26.13% -0.12%
==========================================
Files 124 124
Lines 19824 19914 +90
Branches 19824 19914 +90
==========================================
+ Hits 5203 5204 +1
- Misses 14251 14340 +89
Partials 370 370 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
This pr adds the ability to read tables with the column mapping feature enabled.
Related Issue(s)
Partially implements #930, but lacks the ability to write to tables with column mapping.
Documentation