-
Notifications
You must be signed in to change notification settings - Fork 839
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
Refine the List builder #2034
Refine the List builder #2034
Conversation
Signed-off-by: remzi <[email protected]>
Signed-off-by: remzi <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2034 +/- ##
==========================================
+ Coverage 83.44% 83.54% +0.10%
==========================================
Files 222 222
Lines 57979 58186 +207
==========================================
+ Hits 48378 48612 +234
+ Misses 9601 9574 -27
Continue to review full report at Codecov.
|
Signed-off-by: remzi <[email protected]>
@@ -136,7 +131,7 @@ where | |||
|
|||
let offset_buffer = self.offsets_builder.finish(); | |||
let null_bit_buffer = self.bitmap_builder.finish(); | |||
self.offsets_builder.append(self.len); | |||
self.offsets_builder.append(OffsetSize::zero()); |
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.
?
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.
Append a leading zero to the offset buffer, so that the builder could be reused.
I don't change this behaviour.
Originally, we had
self.offsets_builder.append(self.len)
where self.len
is zero.
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.
Aah makes sense, diff on phone didn't show it setting the length to 0
Which issue does this PR close?
None.
Rationale for this change
GenericListBuilder::len
, as it is always equal to the bitmap length.What changes are included in this PR?
Are there any user-facing changes?
No.