chitralverma opened a new pull request, #9423:
URL: https://github.com/apache/opendal/pull/9423

   # Which issue does this PR close?
   
   Closes #9422.
   
   # Rationale for this change
   
   Compose is the only `Operator` operation with no blocking form. The Python 
`Operator` and the Node.js `*Sync` methods wrap `blocking::Operator`, so they 
need it to expose compose.
   
   # What changes are included in this PR?
   
   - Add `blocking::Operator::compose(inputs, to)` and `compose_options(inputs, 
to, ComposeOptions)`. Both return the destination `Metadata`.
   - Each method collects the inputs into owned `(String, 
ComposeSourceOptions)` pairs. It then runs `Operator::compose_options` through 
`spawn_block`, as `copy_options` does.
   - No blocking `Composer`: the planned binding APIs take a complete source 
list. The compose contract does not change.
   - Add a test with the existing compose mock in `capability_tests.rs`: every 
input reaches the composer, and source and destination options reach the 
capability check.
   
   # Are there any user-facing changes?
   
   - `blocking::Operator` has two new methods. Only `gcs` supports compose; 
other services return `Unsupported`.
   
   Verified: workspace clippy with `--all-targets --all-features -D warnings`, 
`opendal-core` unit and doc tests (735), no-default-features `opendal` and 
`opendal-core` tests (551), rustdoc with the CI lint flags, and `cargo fmt 
--check`. The new test fails under 4 mutations: dropped `ComposeOptions`, 
dropped `ComposeSourceOptions`, a dropped input, a stub error.
   
   Not verified: real composition on GCS. Locally, the other workspace tests 
(they need `fdb_c`) and the Linux-only compio test lint.
   
   # Breaking changes
   
   None.
   
   # AI Usage Statement
   
   - **Harness:** Claude Code via T3 Code | **Model:** Claude Opus 5.5 | 
**Effort:** xhigh
   - **Role:** Implemented the change and the test, ran the checks, and drafted 
this text. The author reviews every change and claim.
   


-- 
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