feat(vortex-python): Add OpenDAL-backed CosStore to the Python object-store API#8845
Open
XuQianJin-Stars wants to merge 1 commit into
Open
feat(vortex-python): Add OpenDAL-backed CosStore to the Python object-store API#8845XuQianJin-Stars wants to merge 1 commit into
XuQianJin-Stars wants to merge 1 commit into
Conversation
…-store API Signed-off-by: forwardxu <forwardxu@apache.org>
XuQianJin-Stars
force-pushed
the
feature/opendal-cos
branch
from
July 19, 2026 03:14
68868e4 to
64006a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump
opendal/object_store_opendalto 0.57.0 (invortex-object-store-opendal); opendal 0.57 enables COS versioning by default.Vendor
pyo3-object_store0.11.0 via[patch.crates-io]so we can addFrom<Arc<dyn ObjectStore>> for PyObjectStore. This lets any store implementation (including the new OpenDAL-backed COS store) be wrapped as aPyObjectStoreand passed directly tovortex.io.read_url(store=...)/vortex.io.write(..., store=...).Add
vendor/pyo3-object_storewith the newfrom_storeconstructor +Fromimpl.Expose the
CosStorepyclass (gated on theopendalfeature) that builds an OpenDALservices::CosOpendalStoreand can be passed as thestore=argument.Introduce
AnyVortexStoreinio.rssoread_url/writeaccept both the built-inpyo3-object_storeclasses and the new COS store.Document the standalone-store usage and add unit tests.
Rationale for this change
Closes: #8844
Vortex's Python API already exposes concrete, standalone store objects for S3/Azure/GCS/HTTP/Local/Memory, but Tencent COS was only reachable through URL-based
cos://resolution that relied on environment variables. This adds a first-classCosStoreso COS can be used exactly like the other stores (construct once, pass viastore=), with better ergonomics and type checking.What changes are included in this PR?
opendal/object_store_opendalbumped to 0.57.0pyo3-object_store0.11.0 with thefrom_storeconstructorCosStorepyclass (opendal feature) wrapping an OpenDAL COSOpendalStoreAnyVortexStoreextractor inio.rssoread_url/writeaccept the new storeWhat APIs are changed? Are there any user-facing changes?
New public API (Python,
opendalfeature):vortex.store.CosStore(bucket, endpoint, *, secret_id=None, secret_key=None, root=None, disable_config_load=False)— a standaloneObjectStoreyou can pass tovortex.io.read_url(url, store=...)/vortex.io.write(arrays, path, store=...).User-facing change: users can now build a COS store object directly and pass it to
read_url/write, instead of only configuringcos://via environment variables (TENCENTCLOUD_SECRET_ID/TENCENTCLOUD_SECRET_KEY/COS_ENDPOINT). The existingcos://URL resolution is unchanged.No breaking changes to existing APIs.