-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: Fix duplicate column output and panic for include_file_paths
#18255
Conversation
include_file_paths
include_file_paths
@@ -461,7 +461,7 @@ pub trait ChunkFilter<T: PolarsDataType> { | |||
/// Create a new ChunkedArray filled with values at that index. | |||
pub trait ChunkExpandAtIndex<T: PolarsDataType> { | |||
/// Create a new ChunkedArray filled with values at that index. | |||
fn new_from_index(&self, length: usize, index: usize) -> ChunkedArray<T>; | |||
fn new_from_index(&self, index: usize, length: usize) -> ChunkedArray<T>; |
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.
index and length were flipped on the trait definition
self | ||
#[cfg(debug_assertions)] | ||
{ | ||
return self.with_column(column).unwrap(); |
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 - enable checks here in debug mode to prevent similar mistakes
@@ -210,20 +209,6 @@ impl ParquetExec { | |||
)? | |||
.finish()?; | |||
|
|||
if let Some(col) = &self.file_options.include_file_paths { |
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.
This was duplicate from a very old implementation approach that didn't push include_file_paths
into the actual reader.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18255 +/- ##
=======================================
Coverage 80.23% 80.24%
=======================================
Files 1500 1500
Lines 198889 198882 -7
Branches 2837 2837
=======================================
+ Hits 159573 159585 +12
+ Misses 38789 38770 -19
Partials 527 527 ☔ View full report in Codecov by Sentry. |
include_file_paths
include_file_paths
Fixes #18219 (comment)
Also fixes a panic for batched CSV and Parquet (fixes #18257)