crepererum commented on PR #610: URL: https://github.com/apache/arrow-rs-object-store/pull/610#issuecomment-3876764204
I should have considered this in #549. Reading the [Azure docs](https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch?tabs=microsoft-entra-id#request-body) though, I think etag matching is also supported by the bulk request variant. So I think we could design an API like this: ```rust pub struct DeleteLocation { pub path: Path, pub if_match: Option<String>, } #[derive(Debug, Clone, Default)] pub struct DeleteOptions { pub extensions: Extensions, } trait ObjectStore { fn delete_stream_opts( &self, locations: BoxStream<'static, Result<DeleteLocation>>, opts: DeleteOptions, ) -> BoxStream<'static, Result<Path>>; } // move `delete_stream` to `ObjectStoreExt` ``` i.e. have the extensions ONCE but have per-location matchers. -- 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]
