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

fix: Csv stop simd cache if eol char is hit #20199

Merged
merged 1 commit into from
Dec 6, 2024
Merged

fix: Csv stop simd cache if eol char is hit #20199

merged 1 commit into from
Dec 6, 2024

Conversation

ritchie46
Copy link
Member

@ritchie46 ritchie46 commented Dec 6, 2024

Fixes the flaky test

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Dec 6, 2024
@@ -404,6 +404,8 @@ impl<'a> CoreReader<'a> {

let counter = CountLines::new(self.quote_char, self.eol_char);
let mut total_offset = 0;
let check_utf8 = matches!(self.encoding, CsvEncoding::Utf8)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

take this out of the loop

@ritchie46 ritchie46 merged commit 579d8fb into main Dec 6, 2024
21 checks passed
@ritchie46 ritchie46 deleted the csv branch December 6, 2024 19:44
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.63%. Comparing base (9e32651) to head (c469427).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-io/src/csv/read/splitfields.rs 95.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #20199   +/-   ##
=======================================
  Coverage   79.63%   79.63%           
=======================================
  Files        1564     1564           
  Lines      217804   217809    +5     
  Branches     2477     2477           
=======================================
+ Hits       173439   173453   +14     
+ Misses      43796    43787    -9     
  Partials      569      569           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@c-peters c-peters added the accepted Ready for implementation label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants