-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(python): Add cast_options
parameter to control type casting in scan_parquet
#22617
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
Conversation
scan_parquet
scan_parquet
93a2844
to
9401600
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22617 +/- ##
==========================================
+ Coverage 80.98% 80.99% +0.01%
==========================================
Files 1661 1662 +1
Lines 234869 235182 +313
Branches 2773 2774 +1
==========================================
+ Hits 190198 190477 +279
- Misses 44004 44037 +33
- Partials 667 668 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
scan_parquet
cast_options
parameter to control type casting in scan_parquet
eaa2552
to
a97a8c9
Compare
a97a8c9
to
3b5d2a5
Compare
3b5d2a5
to
8be5a28
Compare
@@ -13,7 +13,7 @@ use super::*; | |||
// (Major, Minor) | |||
// Add a field -> increment minor | |||
// Remove or modify a field -> increment major and reset minor | |||
pub static DSL_VERSION: (u16, u16) = (2, 0); | |||
pub static DSL_VERSION: (u16, u16) = (3, 0); |
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.
Bumped major DSL version as I've changed the CastColumnsPolicy
(part of unified_scan_args
).
@ritchie46 @nameexhaustion This appears to have broken main again for me.
Results in
This seems to indicate that feature |
Introduces
cast_options
parameter to allow users to scan a list of files with differing schemas. Will later be used by Iceberg / Delta scans.Error messages will now also hint to this - e.g.
API Examples
Pinging @alexander-beedie and @MarcoGorelli for review on the Python API