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

feat: Experimental cloud write support #20129

Merged
merged 15 commits into from
Dec 4, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Dec 3, 2024

Adds support for directly writing to cloud paths for Parquet, CSV and IPC.

Fixes #14630
Fixes #19749

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Dec 3, 2024
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 92.84211% with 34 lines in your changes missing coverage. Please review.

Project coverage is 79.57%. Comparing base (0263868) to head (2cb2b13).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-io/src/cloud/adaptors.rs 82.81% 11 Missing ⚠️
py-polars/polars/dataframe/frame.py 68.96% 5 Missing and 4 partials ⚠️
py-polars/polars/lazyframe/frame.py 61.90% 4 Missing and 4 partials ⚠️
crates/polars-io/src/utils/file.rs 93.87% 3 Missing ⚠️
crates/polars-io/src/cloud/options.rs 0.00% 1 Missing ⚠️
crates/polars-io/src/pl_async.rs 93.33% 1 Missing ⚠️
crates/polars-python/src/file.rs 99.02% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20129      +/-   ##
==========================================
+ Coverage   79.52%   79.57%   +0.05%     
==========================================
  Files        1563     1563              
  Lines      217184   217395     +211     
  Branches     2465     2472       +7     
==========================================
+ Hits       172706   172989     +283     
+ Misses      43917    43838      -79     
- Partials      561      568       +7     

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

@@ -216,6 +231,98 @@ pub enum PythonScanSourceInput {
File(File),
}

fn try_get_pyfile(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this code is just moved into a function from 2 places

@ritchie46 ritchie46 merged commit bcfa7ec into pola-rs:main Dec 4, 2024
27 checks passed
@nameexhaustion nameexhaustion changed the title feat: Experimental cloud write support feat(python, rust!): Experimental cloud write support Dec 5, 2024
@nameexhaustion nameexhaustion added the breaking rust Change that breaks backwards compatibility for the Rust crate label Dec 5, 2024
@nameexhaustion nameexhaustion changed the title feat(python, rust!): Experimental cloud write support feat: Experimental cloud write support Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking rust Change that breaks backwards compatibility for the Rust crate enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency dealing with "file://..." paths Saving parquet to Google Cloud Storage with df.write_parquet()
2 participants