Skip to content

ARROW-11311: [Rust] Fixed unset_bit - #9257

Closed
jorgecarleitao wants to merge 1 commit into
apache:masterfrom
jorgecarleitao:fix_unset
Closed

ARROW-11311: [Rust] Fixed unset_bit#9257
jorgecarleitao wants to merge 1 commit into
apache:masterfrom
jorgecarleitao:fix_unset

Conversation

@jorgecarleitao

Copy link
Copy Markdown
Member

The functions unset_bit and unset_bit_raw were toggling, not unsetting, bits, which was obviously wrong.

This PR also changes the test for set_bit to also make sure that it does not toggle bits.

@github-actions

Copy link
Copy Markdown

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #9257 (035dbaf) into master (1393188) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@ Coverage Diff @@## master #9257 +/- ##
=======================================
Coverage 81.61% 81.61% =======================================
Files 215 215 Lines 51867 51891 +24 =======================================
+ Hits 42329 42353 +24 
Misses 9538 9538 
Impacted FilesCoverage Δ
rust/arrow/src/util/bit_util.rs100.00% <100.00%> (ø)
rust/parquet/src/arrow/schema.rs91.66% <100.00%> (+0.16%)⬆️
rust/arrow/src/array/transform/fixed_binary.rs84.21% <0.00%> (+5.26%)⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1401359...035dbaf. Read the comment docs.

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That is a nice find @jorgecarleitao

@yordan-pavlov

Copy link
Copy Markdown
Contributor

good spot @jorgecarleitao

@alambalamb closed this in ed709e0Jan 20, 2021
kszucs pushed a commit that referenced this pull request Jan 25, 2021
The functions `unset_bit` and `unset_bit_raw` were toggling, not unsetting, bits, which was obviously wrong.
This PR also changes the test for `set_bit` to also make sure that it does not toggle bits.
Closes#9257 from jorgecarleitao/fix_unset
Authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com>
Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.61%. Comparing base (1393188) to head (035dbaf).

Additional details and impacted files
@@ Coverage Diff @@## master #9257 +/- ##
=======================================
Coverage 81.61% 81.61% =======================================
Files 215 215 Lines 51867 51891 +24 =======================================
+ Hits 42329 42353 +24 
Misses 9538 9538 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@jorgecarleitao@codecov-io@yordan-pavlov@codecov-commenter@alamb@nevi-me