Skip to content

fix: discover nested vector columns by default#3423

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/oss-937-define-and-test-nested-vector-column-discovery-behavior
May 21, 2026
Merged

fix: discover nested vector columns by default#3423
Xuanwo merged 1 commit into
mainfrom
xuanwo/oss-937-define-and-test-nested-vector-column-discovery-behavior

Conversation

@Xuanwo

@Xuanwo Xuanwo commented May 21, 2026

Copy link
Copy Markdown
Member

LanceDB default vector column discovery only considered top-level fields, so tables with a single nested vector leaf still required users to pass an explicit field path. This updates Rust and Python discovery to recurse into struct fields, return canonical field paths, and preserve actionable errors when no default or multiple defaults exist.

The explicit nested path flow for index creation and search remains supported across Rust, Python, and Node, with regression coverage for single nested vector leaves, multiple candidate leaves, and schemas without vector leaves.

Closes #3405.

@github-actions github-actions Bot added bug Something isn't working Python Python SDK Rust Rust related issues labels May 21, 2026
@Xuanwo
Xuanwo marked this pull request as ready for review May 21, 2026 09:46

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@mintlify

mintlify Bot commented May 21, 2026

Copy link
Copy Markdown

Docs PR opened: lancedb/docs#251

Added a Vector Search section explaining automatic discovery of nested vector columns, dot-notation field paths, and dimension-based disambiguation.

@Xuanwo
Xuanwo merged commit d5dc4c0 into main May 21, 2026
28 of 29 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/oss-937-define-and-test-nested-vector-column-discovery-behavior branch May 21, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define and test nested vector column discovery behavior

2 participants