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

   **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*)
   -->
   
   Many object stores support some notion of versioning and/or generations. 
Additionally some, such as Azure Blob Storage, have a specialized notion of 
[soft 
deletion](https://learn.microsoft.com/en-us/azure/storage/blobs/soft-delete-blob-overview).
   
   Full support for generations is likely out of scope not least because:
   
   * It is unclear how to support versioning for `LocalFileSystem` whilst 
preserving atomicity
   * The stores are not very consistent in how upserts/deletes interact with 
versions
   * I lack a motivating use-case to guide the API design
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   I would like a new method
   
   ```
   /// Restore a previously deleted object if possible
   /// 
   /// Returns 
   /// - Error::AlreadyExists if the object is not deleted
   /// - Error::NotFound if no soft deleted version can be restored
   fn restore(&self, path: &Path) -> Result<()> {
       Err(Error::NotImplemented)
   }
   ```
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   We could not do this
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to