-
Notifications
You must be signed in to change notification settings - Fork 458
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
chore: use builder API to create FileScanConfig
#3266
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. |
output_ordering: vec![], | ||
}) | ||
let mut exec_plan_builder = ParquetExecBuilder::new( | ||
FileScanConfig::new(self.log_store.object_store_url(), file_schema) |
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.
The idea is to use FileScanConfig::new()` rather than explicitly create the structure manually.
new()
fills in the defaults
0da8007
to
c058b5b
Compare
c058b5b
to
4b0cfc1
Compare
FileScanConfig
FileScanConfig
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3266 +/- ##
==========================================
- Coverage 72.14% 72.11% -0.03%
==========================================
Files 143 143
Lines 45724 45701 -23
Branches 45724 45701 -23
==========================================
- Hits 32986 32959 -27
+ Misses 10666 10665 -1
- Partials 2072 2077 +5 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Andrew Lamb <[email protected]>
4b0cfc1
to
3694c23
Compare
Thanks @ion-elgreco for the fast reviews 🚤 |
Description
Note this PR should have no functional change
Similarly to #3265, this is part of the DataFusion 46 upgrade in #3262, which I am trying to split into multiple parts to reduce the size of the diff (so to make it easier to review and debug)
Specifically, ParquetExec builder is non trivially changed as part of the upgrade, and new fields are added to
FileScanConfig
. This this change updates the API to use the builder style API for FileScanConfig which makes the delta code less verbose as well as making the upgrade easierRelated Issue(s)
46.0.0
apache/datafusion#14123Documentation