Skip to content

chore: switch Lance dependencies to TheDeltaLab fork#44

Merged
sinianluoye merged 2 commits intomainfrom
fix/stale-index-fallback
Apr 11, 2026
Merged

chore: switch Lance dependencies to TheDeltaLab fork#44
sinianluoye merged 2 commits intomainfrom
fix/stale-index-fallback

Conversation

@sinianluoye
Copy link
Copy Markdown
Collaborator

@sinianluoye sinianluoye commented Apr 11, 2026

Summary

  • Switch all 14 Lance crate dependencies from lance-format/lance (v5.0.0-beta.5) to TheDeltaLab/lance (branch main) to track our fork

Context

Lance's vector index can contain stale ROW_ID references after compaction, causing query failures. The root cause is tracked in TheDeltaLab/lance#3 and will be fixed in the fork.

Test plan

  • cargo fmt --all — passes
  • cargo clippy --quiet --tests --examples — passes
  • cargo test --quiet --tests — 351 passed, 1 ignored

🤖 Generated with Claude Code

Switch all 14 Lance crate dependencies from lance-format/lance (v5.0.0-beta.5)
to theDeltaLab/lance (branch main) to track our fork which will contain the
upstream bitmap fix for stale vector indices after compaction.

Add a defensive fallback in VectorQuery: when a query fails due to stale
fragment references in the index ("specified fragment id X does not exist"),
automatically retry with use_index=false (flat search) and log a warning.
This prevents query failures while the root cause (fragment_bitmap
inconsistency in Lance's optimize_indices merge path) is being fixed upstream.

See: TheDeltaLab/lance#3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sinianluoye sinianluoye requested a review from a team April 11, 2026 07:31
@github-actions github-actions bot added bug Something isn't working Rust labels Apr 11, 2026
Remove the stale index query fallback (is_stale_index_error + flat search
retry) — the Lance fork itself will contain the proper fix. Also fix the
GitHub org casing from theDeltaLab to TheDeltaLab.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sinianluoye sinianluoye force-pushed the fix/stale-index-fallback branch from 6eea798 to e80f174 Compare April 11, 2026 07:53
@sinianluoye sinianluoye changed the title fix: stale index query fallback and switch Lance to fork chore: switch Lance dependencies to TheDeltaLab fork Apr 11, 2026
@github-actions github-actions bot added the chore label Apr 11, 2026
@sinianluoye sinianluoye merged commit 5419e04 into main Apr 11, 2026
28 checks passed
@sinianluoye sinianluoye deleted the fix/stale-index-fallback branch April 11, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chore Rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants