Dricmoy opened a new pull request, #55789: URL: https://github.com/apache/arrow/pull/55789
### Rationale for this change When a file is moved within its S3 directory, the destination already keeps that directory visible. Rewriting the directory marker adds an unnecessary request and replaces any metadata on an existing marker. ### What changes are included in this PR? Skip parent-marker creation when the source and destination have the same bucket and parent key. Moves between directories or buckets still preserve the source parent. Updates #40589 for this case. ### Are these changes tested? Built and ran the C++ S3 tests against MinIO on macOS: 71 passed, with two expected skips for unsupported operations. Three tests requiring live AWS region resolution were excluded. Formatting and cpplint pass. The new tests cover implicit directories, preservation of marker metadata, and moves between directories and buckets. The first two fail on unmodified main. ### Are there any user-facing changes? Moves within a directory avoid the extra marker write and preserve existing marker metadata. No public API changes. ### Was AI used for this PR? Codex assisted with the implementation, regression tests, and this description. **PR code and description written by:** - [ ] Human - [x] AI **Reviewed before submission by:** - [ ] Human - [x] AI - [ ] Not reviewed * GitHub Issue: #40589 -- 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]
