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: add max length statistics to VariableWidth Datablock #3082

Merged
merged 6 commits into from
Nov 5, 2024

Conversation

broccoliSpicy
Copy link
Contributor

max length statistics can be used to for encoding selection of Variable-Width-Datablock(string, binary, etc.)

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

codecov-commenter commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 97.29730% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.33%. Comparing base (ceaf49c) to head (5d5bcfa).

Files with missing lines Patch % Lines
rust/lance-encoding/src/statistics.rs 97.29% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3082      +/-   ##
==========================================
+ Coverage   77.31%   77.33%   +0.01%     
==========================================
  Files         240      240              
  Lines       79322    79396      +74     
  Branches    79322    79396      +74     
==========================================
+ Hits        61326    61399      +73     
- Misses      14821    14824       +3     
+ Partials     3175     3173       -2     
Flag Coverage Δ
unittests 77.33% <97.29%> (+0.01%) ⬆️

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.

Comment on lines 1161 to 1164
"Expected Stat::MaxLength to be {:?} for data block generated from array: {:?}",
expected_max_length,
string_array,
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Super minor nit but I find this to be a bit redundant. You are calling assert_eq and therefore it should already be clear what was expected. I think custom error messages are only really requires when they add surprising or unexpected context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, fixed.

@broccoliSpicy broccoliSpicy merged commit bb5289b into lancedb:main Nov 5, 2024
24 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants