Repository navigation
connection: add direct namespace builder - #167
Merged
Merged
Conversation
Add lancedb_connect_namespace and a consuming builder for the SDK's ConnectNamespaceBuilder. Bind borrowed implementation properties, storage options, namespace client properties, read consistency, session borrowing, and the SDK's two pushdown operations, then execute to the existing connection handle. Cover a real dir namespace through the C and C++ public APIs, SDK validation errors, invalid inputs and ownership. Feature-gated tests cover rest and no-remote builds. Refs #124
…der-implementation
…der-implementation
Document where namespace connection storage options are used during create and open, including the namespace response fallback and per-write override. Distinguish them from the dir implementation's storage.* properties for its own root object store. State that namespace execute publishes the connection output only on success and preserves an existing error message slot, matching the URI connect builder. Refs #124
…der-implementation
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.
Implements the direct namespace slice of #124.
Adds
lancedb_connect_namespaceand a consumingLanceDBConnectNamespaceBuilderover the pinned SDK'slancedb::connect_namespace. The constructor copies borrowed implementation properties. The opaque builder exposes storage options, namespace client properties, the millisecond read consistency interval, a borrowed session, and the SDK's QueryTable/CreateTable pushdown values. Execute returns the existingLanceDBConnection, so connection free, URI, read consistency and table APIs keep their current contracts.dirworks without extra features,restfollows the SDKremotefeature gate, and unknown implementations or missing required properties surface the SDK's namespace connection error. Pushdown values are checked explicitly before mapping. With the pinned SDK, CreateTable is forwarded but the namespace create path still declares the table and writes locally.The connection storage-options map is a create fallback only when the namespace response omits storage_options; an explicit empty map prevents that fallback and the selected map overrides per-write keys. Open uses describe_table storage options plus per-open options instead. The dir implementation's own root I/O uses
storage.*implementation properties, not this map.Validation on implementation head
2bbd9c4(treea6f7f74) with integrated maincf32a6aand SDK0.42.0-beta.21: locked default tests 5/5, locked no-default tests 4/4, strict Clippy, host and MSVC LLP64 ABI checks (221 functions / 52 structs / 12 enums), and the targeted CMake connection plus C17 consumer CTest. The connection suite passed Valgrind with 0 errors and 0 definite/possible leaks. The docs-only follow-up headf6f60ad(treed17b403) passed fmt, strict C17 and both ABI checks; its storage-option wording was checked against the SDK v0.42.0-beta.21 and beta.22 sources.The integrated head
9d2dd14(treef36f1ece) appends actual main16d6217, including SDK beta.22 and Lance beta.26, and keeps only the seven-file namespace delta with no SDK pin changes relative to main. Integrated-head fmt, strict C17, and host/MSVC LLP64 ABI checks pass; the ordinary hosted native and documentation suites are running.Refs #124. The tracker remains open for the remaining connection slices.