-
Notifications
You must be signed in to change notification settings - Fork 60
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
Make deletion vector manipulation less error-prone #374
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #374 +/- ##
==========================================
+ Coverage 76.54% 76.56% +0.02%
==========================================
Files 47 47
Lines 9384 9393 +9
Branches 9384 9393 +9
==========================================
+ Hits 7183 7192 +9
Misses 1799 1799
Partials 402 402 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks ryan!!
/// Extends the underlying mask to match the row count of the accompanying data. | ||
pub fn full_mask(&self) -> Option<Vec<bool>> { | ||
let mut mask = self.raw_mask.clone()?; | ||
mask.resize(self.raw_data.as_ref().ok()?.length(), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice! I like this better than extend(iter::repeat().take())
flagged as breaking since we are taking the mask private |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! thanks, this is better than adjusting it everywhere.
Deletion vectors in a scan result can be truncated, with fewer entries than the corresponding engine data.
Remove a footgun by making the raw DV in a
ScanResult
private, with new accessors to make it less error-prone to use.