refactor(index): remove dead segment commit branch - #7971
Conversation
📝 WalkthroughWalkthrough
ChangesIndex transaction construction
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ef796d0 to
a8e243f
Compare
There was a problem hiding this comment.
Note
Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.
🟡 Other comments (1)
rust/lance/src/index/create.rs-1831-1834 (1)
1831-1834: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winAssert the concrete error variant as well as the message.
These tests only check
to_string(), so an incorrect error type with the same text would still pass. Assert the expectedErrorvariant and retain the message assertion.As per coding guidelines, tests must assert both the error variant and message content.
Also applies to: 3121-3124
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@rust/lance/src/index/create.rs` around lines 1831 - 1834, Update the affected error tests around the merge-error assertion and the corresponding assertion at the other reported location to match the concrete expected Error variant before retaining the existing “future dataset version” message check. Ensure both assertions validate the error type and message content, using the project’s established variant-matching pattern.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Other comments:
In `@rust/lance/src/index/create.rs`:
- Around line 1831-1834: Update the affected error tests around the merge-error
assertion and the corresponding assertion at the other reported location to
match the concrete expected Error variant before retaining the existing “future
dataset version” message check. Ensure both assertions validate the error type
and message content, using the project’s established variant-matching pattern.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: QUIET
Plan: Pro Plus
Run ID: 941b7c73-892b-4749-b4a5-e52d6bbd4814
📒 Files selected for processing (1)
rust/lance/src/index/create.rs
Summary
CreateIndexBuilder::execute.CreateIndextransaction as the fallback branch but left the guard in place.Testing
cargo fmt --all -- --checkcargo clippy --all --tests --benches -- -D warningsindex::createvector, IVF-RQ, and BTree tests