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

feat!: distinguishable scalar index types #2671

Merged
merged 16 commits into from
Aug 2, 2024
Merged

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Aug 1, 2024

Breaking Change

Different scalar index types are shown up differently from list_indices()

@github-actions github-actions bot added the enhancement New feature or request label Aug 1, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 59.80392% with 41 lines in your changes missing coverage. Please review.

Project coverage is 79.64%. Comparing base (3ebec1d) to head (f162a5d).

Files Patch % Lines
rust/lance-index/src/scalar.rs 51.72% 14 Missing ⚠️
rust/lance/src/index/append.rs 22.22% 7 Missing ⚠️
rust/lance/src/session.rs 0.00% 7 Missing ⚠️
rust/lance/src/index.rs 85.36% 4 Missing and 2 partials ⚠️
rust/lance-index/src/lib.rs 54.54% 4 Missing and 1 partial ⚠️
rust/lance-index/src/scalar/inverted/builder.rs 0.00% 0 Missing and 1 partial ⚠️
rust/lance-index/src/scalar/label_list.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2671      +/-   ##
==========================================
- Coverage   79.65%   79.64%   -0.02%     
==========================================
  Files         226      226              
  Lines       66245    66325      +80     
  Branches    66245    66325      +80     
==========================================
+ Hits        52768    52824      +56     
- Misses      10382    10398      +16     
- Partials     3095     3103       +8     
Flag Coverage Δ
unittests 79.64% <59.80%> (-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.

@github-actions github-actions bot added the python label Aug 1, 2024
@eddyxu eddyxu changed the title feat: distinguish scalar index types feat: distinguishable scalar index types Aug 1, 2024
@eddyxu eddyxu marked this pull request as ready for review August 1, 2024 04:20
@@ -67,7 +67,14 @@ pub trait Index: Send + Sync + DeepSizeOf {
#[derive(Debug, PartialEq, Eq, Copy, Hash, Clone, DeepSizeOf)]
pub enum IndexType {
// Preserve 0-100 for simple indices.
Scalar = 0,
Scalar = 0, // BTree
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add BTree and let Scalar still indicate BTree?
That could be more clear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, add one

Copy link
Contributor

@BubbleCal BubbleCal left a comment

Choose a reason for hiding this comment

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

Let's mark it breaking change, users may rely that Scalar before

@eddyxu eddyxu changed the title feat: distinguishable scalar index types feat!: distinguishable scalar index types Aug 2, 2024
@eddyxu eddyxu merged commit 4210a29 into main Aug 2, 2024
32 of 34 checks passed
@eddyxu eddyxu deleted the lei/scalar_index_debug branch August 2, 2024 03:53
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