Skip to content

Allow custom object store to be passed during I/O Operations #22

Closed

Description

@soumyakoduri

Currently LanceDB allows its users (via Rust SDK) to pass custom object store wrapper via WriteParams or ReadParams while doing I/O operations. Below is an example

// Create ObjectStoreParams with custom object store wrapper
let store_params = ObjectStoreParams {
    object_store_wrapper: Some(object_store_wrapper),
    ..Default::default()
};

// Create WriteParams with custom ObjectStore
let mut write_params = WriteParams::default();
write_params.store_params = Some(store_params);

// Create table with custom ObjectStore
let table = db
    .create_table("my_table", data)
    .write_options(WriteOptions {
        lance_write_params: Some(write_params),
    })
    .execute()
    .await
    .unwrap();

This needs be added in C Wrapper APIs as well so that the users can avail this feature.

Note: A new feature ticket (#3072) is raised to allow these params during connection time as well.

Activity

  1. self-assigned this
    on Feb 27, 2026
  2. added theissue type on Mar 2, 2026
  3. added a commit that references this issue on Mar 2, 2026
  4. Xuanwo commented on Nov 21, 2026

    @Xuanwo
    Member

    Thanks for the concrete Ceph RGW use case. Since this was filed, lancedb-c has gained the session-level custom store path that covers this without per-operation WriteParams:

    • lancedb_registry_new() + lancedb_registry_insert_provider() register an ObjectStoreProvider for a URL scheme, and lancedb_session_new_with_registry() uses that registry for every operation in the session, including deletes. The provider is created once and reused, so the RGW-specific parameters can live in the provider.
    • The provider is constructed on the Rust side: a small cdylib implements lance_io::ObjectStoreProvider and returns a LanceDBObjectStoreProvider*. The C side only registers that opaque handle. See examples/external_provider and examples/lancedb_registry.cpp.
    • This is on main since #50 (merged 2026-06-18). The earlier write-params approach (#24) was closed because WriteParams do not cover deletes.

    The C API still does not expose per-operation WriteParams/ReadParams or WrappingObjectStore. Does the session-level provider cover your backend, or do you need to vary the wrapper/parameters per individual operation? If it covers it, this can be closed as resolved; if not, knowing exactly what varies per operation would help decide whether that needs a new C ABI surface.

  5. Xuanwo commented on Nov 22, 2026

    @Xuanwo
    Member

    Need to track lance's storage plugin design

  6. yuvalif commented on Nov 22, 2026

    @yuvalif
    Collaborator

    @Xuanwo the cirtical piece is the session level registry. we use our own internal implementation in the RGW to provide an object store API that does not require over-the-wire communication.
    for that, we do not need a per-operation API.
    in the RGW there are 2 needed per-operation are:

    • debug log handle - has in it information about the REST call that triggered the operation - this helps correlate debug log records that belong to the same REST level transaction. we can live without that, we pass the global log handle at the session level, so debug messages are logged, only without the correlation information
    • boost asio yield context - this is probably not needed anyway, because these calls are executed on the tokio runtime, and not the boost asio coroutine scheduler we use in the RGW

    so, probably does not worth the extra API just for the log correlation bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions