Skip to content

chore: respect num_indices_to_merge param#5253

Merged
BubbleCal merged 2 commits intolance-format:mainfrom
BubbleCal:respect-num-indices-to-merge
Nov 17, 2025
Merged

chore: respect num_indices_to_merge param#5253
BubbleCal merged 2 commits intolance-format:mainfrom
BubbleCal:respect-num-indices-to-merge

Conversation

@BubbleCal
Copy link
Copy Markdown
Contributor

@BubbleCal BubbleCal commented Nov 17, 2025

if num_indices_to_merge is passed, don't trigger SPFresh split

Signed-off-by: BubbleCal <bubble-cal@outlook.com>
@github-actions github-actions Bot added the chore label Nov 17, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.27%. Comparing base (417b9a8) to head (fd3d8f1).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5253      +/-   ##
==========================================
+ Coverage   82.25%   82.27%   +0.02%     
==========================================
  Files         344      344              
  Lines      144636   144901     +265     
  Branches   144636   144901     +265     
==========================================
+ Hits       118967   119219     +252     
- Misses      21742    21751       +9     
- Partials     3927     3931       +4     
Flag Coverage Δ
unittests 82.27% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread rust/lance/src/index/vector/builder.rs Outdated
ivf: &IvfModel,
reader: &dyn ShuffleReader,
existing_indices: &[Arc<dyn VectorIndex>],
num_indices_to_merge: Option<usize>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This API change really surprised me. If we just input an Option and return Ok(None) if it's some, how about we do this check outside?

Copy link
Copy Markdown
Contributor Author

@BubbleCal BubbleCal Nov 17, 2025

Choose a reason for hiding this comment

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

updated

Signed-off-by: BubbleCal <bubble-cal@outlook.com>
@BubbleCal BubbleCal requested a review from Xuanwo November 17, 2025 13:21
Copy link
Copy Markdown
Collaborator

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you for working on this!

@BubbleCal BubbleCal merged commit 4d39ffc into lance-format:main Nov 17, 2025
25 checks passed
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
if `num_indices_to_merge` is passed, don't trigger SPFresh split

---------

Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants