Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: verify num_sub_vectors is valid before creating index #3056

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

westonpace
Copy link
Contributor

This was being checked deep in the Rust code on the CPU path. However, on the accelerator path it was creating the index which would then give obscure errors when attempts were made to search it.

This PR adds a check early in the python code and adds unit tests for the various ways indices can be created.

@github-actions github-actions bot added bug Something isn't working python labels Oct 28, 2024
@westonpace westonpace merged commit 8cf899b into lancedb:main Oct 29, 2024
12 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants