-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: Support hive partitioning in scan_ipc
#17434
Conversation
|
||
// Used to determine the next file to open. This guarantees the order. | ||
let path_index = AtomicUsize::new(0); | ||
let row_counter = RwLock::new(ConsecutiveCountState::new(self.paths.len())); |
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.
drive-by simplify a bit by removing these atomics - into_par_iter
guarantees result ordering
// Used to determine the next file to open. This guarantees the order. | ||
let path_index = AtomicUsize::new(0); | ||
let row_counter = RwLock::new(ConsecutiveCountState::new(self.paths.len())); | ||
let mut dfs = if let Some(mut n_rows) = self.file_options.n_rows { |
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.
drive-by - use sequential read if there is a row limit - this is usually what we do in other places (union, csv scan)
scan_ipc(hive_partitioning=True)
scan_ipc(hive_partitioning=True)
scan_ipc(hive_partitioning=True)
scan_ipc
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17434 +/- ##
==========================================
- Coverage 80.68% 80.63% -0.06%
==========================================
Files 1476 1477 +1
Lines 193490 193457 -33
Branches 2760 2760
==========================================
- Hits 156126 155996 -130
- Misses 36854 36951 +97
Partials 510 510 ☔ View full report in Codecov by Sentry. |
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.
Nice!
Resolves #14885