You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow custom object store to be passed during I/O Operations #22
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.
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.
@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
Activity
add partial ObjectStoreParams support
Xuanwo commentedon Nov 21, 2026
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 anObjectStoreProviderfor a URL scheme, andlancedb_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.cdylibimplementslance_io::ObjectStoreProviderand returns aLanceDBObjectStoreProvider*. The C side only registers that opaque handle. Seeexamples/external_providerandexamples/lancedb_registry.cpp.mainsince #50 (merged 2026-06-18). The earlier write-params approach (#24) was closed becauseWriteParamsdo not cover deletes.The C API still does not expose per-operation
WriteParams/ReadParamsorWrappingObjectStore. 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.Xuanwo commentedon Nov 22, 2026
Need to track lance's storage plugin design
yuvalif commentedon Nov 22, 2026
@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:
so, probably does not worth the extra API just for the log correlation bit