-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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: Fix CloudWriter
to use buffer before making requests
#18027
Conversation
The issue started after the bump of `ObjectStore` to v0.10. Before that, ObjectStore was doing an internal buffer. The implementation is using `ObjectStore::BufWriter`, that is going to perform a "put" request if the size of data is below the "capacity". Otherwise it is going to do a "put multipart" instead. Fixes pola-rs#17172
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18027 +/- ##
==========================================
+ Coverage 80.49% 80.50% +0.01%
==========================================
Files 1496 1496
Lines 196786 196786
Branches 2817 2817
==========================================
+ Hits 158407 158427 +20
+ Misses 37858 37838 -20
Partials 521 521 ☔ View full report in Codecov by Sentry. |
@@ -7,4 +7,6 @@ edition = "2021" | |||
|
|||
[dependencies] | |||
aws-creds = "0.36.0" | |||
polars = { path = "../../crates/polars", features = ["lazy", "aws", "parquet", "cloud_write"] } | |||
polars = { path = "../../crates/polars", features = ["lazy", "aws", "parquet", "cloud_write", "streaming"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this need streaming
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I'm getting this error when streaming
is disabled:
thread 'main' panicked at /Users/philip/polars/crates/polars-lazy/src/frame/mod.rs:625:17:
activate feature 'streaming'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah.. Fair enough!
Alright. Thanks. |
The issue started after the bump of
ObjectStore
to v0.10. Before that, ObjectStore was doing an internal buffer.The implementation is using
ObjectStore::BufWriter
, that is going to perform a "put" request if the size of data is below the "capacity". Otherwise it is going to do a "put multipart" instead.Fixes #17172