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: relax 'take out of bounds' check which could cause failure if flat searching deleted rows #2314

Merged
merged 2 commits into from
May 8, 2024

Conversation

westonpace
Copy link
Contributor

Taking row offset 100 might be valid even if a fragment only has 10 rows. This is because that fragment might have once had 1000 rows and 990 of them were deleted. We need to make sure we do the bounds check on the addressible range and not the materialized range. This means that some takes might return empty / deleted (id == null) rows and this is ok.

@github-actions github-actions bot added the bug Something isn't working label May 8, 2024
@albertlockett albertlockett self-requested a review May 8, 2024 19:34
@westonpace westonpace merged commit 89e8eb6 into lancedb:main May 8, 2024
18 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants