Skip to content

Support to create and insert custom ObjectStoreProvider via session Registry - #50

Merged
yuvalif merged 1 commit into
lancedb:mainfrom
soumyakoduri:wip-skoduri-objectstore-registry
Jun 18, 2026
Merged

yuvalif merged 1 commit into
lancedb:mainfrom
soumyakoduri:wip-skoduri-objectstore-registry

Conversation

@soumyakoduri

@soumyakoduri soumyakoduri commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Add APIs to create LanceDB ObjectStoreRegistry and pass them for session creation. This enables integration with external storage backends.

Signed-off-by: Soumya Koduri [email protected]

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@yuvalif please review the changes.

Comment thread include/lancedb.h Resolved
Comment thread include/lancedb.h Resolved
Comment thread tests/test_connection.cpp Resolved
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch from 08df74b to e40b1ee Compare June 2, 2026 09:34
Comment thread include/lancedb.h Resolved
Comment thread include/lancedb.h Resolved
yuvalif added a commit to yuvalif/lancedb-c that referenced this pull request Jun 8, 2026
this is to allow for deep call stacks that happening
when the query planner is needed.
example of deep call (63 frames) stack backtrace in upsert:

C++                  --- frames lancedb#63-lancedb#61
tokio                --- frames lancedb#60-lancedb#50
lancedb merge logic  --- frames lancedb#49-lancedb#45
lance execution      --- frames lancedb#44-lancedb#28
df physical planning --- frames lancedb#27-lancedb#18
lance scanner        --- frames lancedb#17-lancedb#10
SessionState clone   --- frames lancedb#9-#0

backtrace:
https://gist.github.com/yuvalif/7b3c78bd56765a03163f17377c20544b

Signed-off-by: Yuval Lifshitz <[email protected]>
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch 2 times, most recently from 2f1df0b to f5a81c7 Compare June 9, 2026 10:18
@soumyakoduri soumyakoduri changed the title Add lancedb_session_new_with_registry() for custom ObjectStore backends Provide APIs to create and use custom ObjectStoreProvider and session registry Jun 9, 2026
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch from f5a81c7 to d7603d3 Compare June 9, 2026 10:21
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@yuvalif .. as per our discussion, added LanceDBObjectStoreProvider opaque handle too which is initialized to MemoryStoreProvider by default.

Comment thread include/lancedb.h Resolved
Comment thread include/lancedb.h Resolved
Comment thread include/lancedb.h Resolved
@yuvalif

yuvalif commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

please add an example file that demonstrate the actual use of these APIs.
see the example here: #24
where the example contains a rust crate for the custom object store provider

@yuvalif yuvalif mentioned this pull request Jun 11, 2026
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch from d7603d3 to 3996275 Compare June 16, 2026 10:22
@soumyakoduri soumyakoduri changed the title Provide APIs to create and use custom ObjectStoreProvider and session registry Support to create and insert custom ObjectStoreProvider via session Registry Jun 16, 2026
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

please add an example file that demonstrate the actual use of these APIs. see the example here: #24 where the example contains a rust crate for the custom object store provider

Done.

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@yuvalif I have made changes as per our last discussion. Included an example too. Please take a look.

Comment thread examples/external_provider/src/lib.rs Resolved
Comment thread examples/external_provider/src/lib.rs Resolved
Comment thread examples/external_provider/src/lib.rs Resolved
Comment thread examples/s3_provider/src/lib.rs Resolved
Comment thread examples/s3_provider/src/lib.rs Resolved
Comment thread examples/external_provider/Cargo.toml Resolved
@yuvalif

yuvalif commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

@yuvalif I have made changes as per our last discussion. Included an example too. Please take a look.

thanks @soumyakoduri !
overall looks good, added some comments

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch from 3996275 to 0f3d18b Compare June 17, 2026 05:36
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch from 0f3d18b to e1017d3 Compare June 17, 2026 13:37
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch 2 times, most recently from 976437e to 5996d5a Compare June 17, 2026 17:35
…ion registry

Opaque Placeholder handles - LanceDBObjectStoreRegistry and LanceDBObjectStoreProvider
and APIs are provided to create custom ObjectStore Registry and Provider.

Signed-off-by: Soumya Koduri <[email protected]>
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-objectstore-registry branch from 5996d5a to 126db47 Compare June 18, 2026 09:00
@yuvalif

yuvalif commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

will fix windows corss compile and increase coverage in followup work

@yuvalif
yuvalif merged commit 565315f into lancedb:main Jun 18, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants