Xuanwo opened a new pull request, #8728: URL: https://github.com/apache/opendal/pull/8728
# Which issue does this PR close? Refs #7786. The issue is kept open: per the maintainer discussion there, the repo-aware path fix belongs to the object_store/DataFusion side. This PR documents the path convention on the OpenDAL side, including the double-prefix failure mode and the supported registration patterns. # Rationale for this change `OpendalStore` forwards every `object_store::path::Path` to the `Operator`, which resolves it against the operator's configured `root`. DataFusion's `DefaultObjectStoreRegistry` keys stores by `scheme://authority` only and hands the store the full URL path, so repeating the same prefix in both the operator `root` and queried URLs produces a doubled prefix (`/lhoestq/datasets/lhoestq/datasets/...`) and failed lookups. This convention was previously undocumented; the only way to discover it was reading the implementation or hitting the failure reported in #7786. # What changes are included in this PR? - `OpendalStore::new` rustdoc gains a "Path resolution" section explaining the `root + path` convention, why prefixes are never stripped, and the two supported ways to register with a URL-based registry (empty root with full URL paths, or a configured `root` with queried paths relative to it, including a dedicated authority for schemes like `hf://` whose authority does not encode the repository). - A runnable doctest on `OpendalStore::new` using `services::Memory` that demonstrates root-relative path resolution and asserts the double-prefixed lookup returns `NotFound`. - A matching "Path resolution" summary in the crate-level docs (`lib.rs`) and in `README.md`. # Are there any user-facing changes? Documentation only: new rustdoc sections on `OpendalStore`/`OpendalStore::new`, crate docs, and README. No API or behavior changes. # Breaking changes # AI Usage Statement - Harness: pi coding agent via T3 Code (delegated sub-agent) - Model: devin/swe-2 - Effort: max - Role: Read issue #7786 and the integration source, wrote the rustdoc/README additions and the doctest, and ran local verification (`cargo test -p object_store_opendal --doc`, `cargo test -p object_store_opendal`, `cargo clippy -p object_store_opendal --all-targets -- -D warnings`, `cargo fmt --all -- --check`, `cargo doc -p object_store_opendal --no-deps`). Unknowns: the exact DataFusion-side fix remains open in #7786; this PR documents current behavior rather than changing it. -- 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]
