Repository navigation
connection: add open table options - #153
Merged
Merged
Conversation
Bind the SDK OpenTableBuilder options while keeping the legacy open entry unchanged. Reuse the landed namespace path conversion and document backend behavior at the pinned SDK.
The SDK attaches the connection Session to every embedded open, so an explicit index_cache_size does not resize the Session cache. Cover unused option fields and an invalid scheduler_error_mode diagnosis.
…ions # Conflicts: # tests/test_c_enum_inputs.c
Open the branch head and a pinned branch version through the new options, and keep the existing main and missing-branch cases.
Read the fork and head versions from the branch instead of assuming the shared main version.
This was referenced Nov 23, 2026
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.
Summary
lancedb_connection_open_table_with_optionsand a borrowedLanceDBOpenTableOptionswith multi-component namespace path, optional location, per-table storage key/value pairs,index_cache_size,version,branchandmanaged_versioning.namespace_path_from_cconversion and forward the options through the pinned SDKOpenTableBuilder; the C layer does not emulate backend behavior.lancedb_connection_open_tablesignature, errors and output ownership unchanged. The new entry clearstable_outand the error slot on entry and writestable_outonly on success.lancedbv0.42.0-beta.21. The SDK attaches the connection Session to embedded opens, so an explicitindex_cache_size, including zero, is forwarded but does not resize or disable the Session's effective cache.Tests
version/managed_versioningfields, version snapshots with rejected writes, version zero selection, main branch plus version, a named branch head and pinned branch version, missing branch, custom location, borrowed storage options and invalid arrays, an invalidscheduler_error_modediagnosed by the SDK, managed-versioning unset/false/true, multi-component namespace selection, invalid options, and output clearing versus the legacy entry.check-abiself-tests (184 functions, 38 structs, 8 shared enums); strict C17 and C++20 header probes;cargo fmt --check; locked metadata.The current C API still has no create-with-namespace entry, so a positive non-root table setup remains with the create slice. Named branch creation and pinned branch opens now use the landed branch lifecycle APIs.
Refs #125