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: integrate bitmap index into top-level lance APIs #2575

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

westonpace
Copy link
Contributor

This also fixes a minor synchronization perf issue in the prefilter search path

@github-actions github-actions bot added enhancement New feature or request python labels Jul 8, 2024
@@ -1103,7 +1103,7 @@ def cleanup_old_versions(
def create_scalar_index(
self,
column: str,
index_type: Literal["BTREE"],
index_type: Union[Literal["BTREE"], Literal["BITMAP"]],
Copy link
Contributor

@eddyxu eddyxu Jul 8, 2024

Choose a reason for hiding this comment

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

Should we have a default index type to BTREE, like what MySQL / Postgres do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should automatically pick the index type based on cardinality by default. I'm hoping to do this in a future PR (or maybe @raunaks13 )

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 52.63158% with 9 lines in your changes missing coverage. Please review.

Project coverage is 80.08%. Comparing base (3f26a7b) to head (b08a251).
Report is 2 commits behind head on main.

Files Patch % Lines
rust/lance/src/index.rs 37.50% 2 Missing and 3 partials ⚠️
rust/lance/src/index/scalar.rs 60.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2575      +/-   ##
==========================================
+ Coverage   80.01%   80.08%   +0.06%     
==========================================
  Files         210      211       +1     
  Lines       60323    61038     +715     
  Branches    60323    61038     +715     
==========================================
+ Hits        48270    48881     +611     
- Misses       9182     9226      +44     
- Partials     2871     2931      +60     
Flag Coverage Δ
unittests 80.08% <52.63%> (+0.06%) ⬆️

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.

Copy link
Contributor

@eddyxu eddyxu left a comment

Choose a reason for hiding this comment

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

Ok,lets merge it and make a release?

@westonpace westonpace merged commit 49de38e into lancedb:main Jul 9, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants