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(rust): Reorganize polars_io::csv module #15831

Merged
merged 25 commits into from
Apr 24, 2024
Merged

refactor(rust): Reorganize polars_io::csv module #15831

merged 25 commits into from
Apr 24, 2024

Conversation

stinodego
Copy link
Contributor

@stinodego stinodego commented Apr 22, 2024

Changes

  • Implement Default for CsvParserOptions. No other functional changes.
  • Split the polars_io::csv module contents into two public submodules: read and write. Organized those modules and cleaned up the public exports.

This is not breaking as the polars::io namespace should not be affected.

Better use of the options structs will be up next 🤓

@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars labels Apr 22, 2024
Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.37%. Comparing base (ef69d13) to head (063bc13).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15831      +/-   ##
==========================================
- Coverage   80.39%   80.37%   -0.03%     
==========================================
  Files        1263     1265       +2     
  Lines      165368   165391      +23     
==========================================
- Hits       132942   132925      -17     
- Misses      32426    32466      +40     

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

Copy link

codspeed-hq bot commented Apr 22, 2024

CodSpeed Performance Report

Merging #15831 will not alter performance

Comparing csv-options (063bc13) with main (fd41e03)

Summary

✅ 13 untouched benchmarks

@stinodego stinodego changed the title refactor(rust): Reorganize polars_io::csv module refactor(rust!): Reorganize polars_io::csv module Apr 23, 2024
@github-actions github-actions bot added the breaking rust Change that breaks backwards compatibility for the Rust crate label Apr 23, 2024
@stinodego stinodego changed the title refactor(rust!): Reorganize polars_io::csv module refactor(rust): Reorganize polars_io::csv module Apr 23, 2024
@stinodego stinodego removed the breaking rust Change that breaks backwards compatibility for the Rust crate label Apr 23, 2024
@stinodego stinodego marked this pull request as ready for review April 23, 2024 06:52
@@ -3,7 +3,6 @@
#![allow(clippy::transmute_undefined_repr)]
#![allow(non_local_definitions)]
#![allow(clippy::too_many_arguments)] // Python functions can have many arguments due to default arguments
extern crate polars as polars_rs;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this as a drive-by. It was unnecessary and only used in a handful of places.

@ritchie46 ritchie46 merged commit 3cbd338 into main Apr 24, 2024
26 checks passed
@ritchie46 ritchie46 deleted the csv-options branch April 24, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants