Skip to content
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

refactor: Factor out logic for re-use by new streaming CSV source #19637

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
c
  • Loading branch information
nameexhaustion committed Nov 5, 2024
commit 7e4df593d9280c51f7ba36d921e1752b8a13aa2d
4 changes: 2 additions & 2 deletions crates/polars-io/src/csv/read/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub fn prepare_csv_schema(

let new_schema = schema
.iter_fields()
.map(|mut fld| -> PolarsResult<Field> {
.map(|mut fld| {
use DataType::*;

let mut matched = true;
Expand Down Expand Up @@ -247,7 +247,7 @@ pub fn prepare_csv_schema(

changed |= matched;

Ok(out)
PolarsResult::Ok(out)
})
.collect::<PolarsResult<Schema>>()?;

Expand Down
Loading