-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make BooleanBufferBuilder get_bit not require mutable reference #784
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #784 +/- ##
=======================================
Coverage 82.54% 82.54%
=======================================
Files 168 168
Lines 47912 47917 +5
=======================================
+ Hits 39548 39554 +6
+ Misses 8364 8363 -1
Continue to review full report at Codecov.
|
nevi-me
left a comment
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
| } | ||
|
|
||
| #[test] | ||
| fn test_bool_buffer_builder_get_first_bit_not_requires_mutability() { |
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.
I think you could omit this test, because the function taking an immutable reference is enough.
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.
Given that I managed to do the fuckup of requiring a mutable reference, I'd prefer to keep this test to prevent the possibility of this happening in the future (although unlikely). I hope you are OK with this.
|
Thanks @boazberman |
1 similar comment
|
Thanks @boazberman |
#792) Co-authored-by: Boaz <berman.boaz@gmail.com>
Which issue does this PR close?
This PR is a followup to #693 in which I did the insanely stupid mistake of requiring a mutable reference instead of immutable reference. This PR fixes this (and adds a test to validate it...).
This is required to finish apache/datafusion#884
Closes #.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?