apache / apache/arrow-rs-object-store
object_store: put_multipart_opts should allow setting PutMode
- Dominant language
- Rust
- Stars
- 322
- Forks
- 212
- Avg merge
- 5d 2h
- Merged PRs (30d)
- 10
Description
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
I want to be able to use PutMode::Create with multipart uploads (multipart complete operation should fail if an object already exists at the given path)
**Describe the solution you'd like**
add PutMode to PutMultipartOpts and use it appropriately
**Describe alternatives you've considered**
**Additional context**
Support for this is already _partially_ in place, S3Client's `complete_multipart` accepts a `CompleteMultipartMode`, but this is currently only used to implement `copy_if_not_exists` and not for normal multipart object uploads
Contributor guide
Research direction
Start by tracing PutMultipartOpts through multipart uploads and inspect S3Client's complete_multipart handling of CompleteMultipartMode. Compare that path with copy_if_not_exists, then ensure PutMode::Create is carried through normal multipart completion and causes completion to fail when the destination already exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100