Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lossy
Browse files Browse the repository at this point in the history
ritchie46 committed Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a567b77 commit 898373b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/polars-io/src/csv/read/read_impl.rs
Original file line number Diff line number Diff line change
@@ -479,7 +479,8 @@ impl<'a> CoreReader<'a> {
total_offset += position + 1;
(b, count)
};
let check_utf8 = self.schema.iter_fields().any(|f| f.dtype().is_string());
let check_utf8 = matches!(self.encoding, CsvEncoding::Utf8)
&& self.schema.iter_fields().any(|f| f.dtype().is_string());

if !b.is_empty() {
let results = results.clone();

0 comments on commit 898373b

Please sign in to comment.