paraseba opened a new issue, #667:
URL: https://github.com/apache/arrow-rs-object-store/issues/667

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   In the process of updating an object in S3 or GCS, I want to first do a 
buckup of the original object. Currently, the only way to do this consistently 
when there is potential for concurrent writes, is to first fetch the object 
with `get_opts`, using an `if_match` condition, and then write it back to the 
object store. `object_store` has `copy` to do this, but currently it doesn't 
support conditions on the source. Most object stores (including S3 and GCS) do 
support this feature.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   Add `if_match` and other supported conditions to `ObjectStore::copy_opts`
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   There is the workaround I mention in the introduction, but it requires 
streaming the object back and forth from/to the object store. 
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   The context for this request is the 
[Icechunk](https://github.com/earth-mover/icechunk/) project, where we use 
object stores conditionals to implement transactions over large amounts of data.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to