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

Cherry pick fix: bug in offset calculation for unions to active_release #871

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Oct 27, 2021

Automatic cherry-pick of 05eb63f

The `value_offset` function only read the least significant byte in the
offset array, causing issues with unions with more than 255 rows of any
given variant. Fix the issue by reading the entire i32 offset and add a
unit test.
@github-actions github-actions bot added the arrow Changes to the arrow crate label Oct 27, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #871 (966259b) into active_release (bfac9e5) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 966259b differs from pull request most recent head e7e50df. Consider uploading reports for the commit e7e50df to get more accurate results
Impacted file tree graph

@@                Coverage Diff                 @@
##           active_release     #871      +/-   ##
==================================================
+ Coverage           82.47%   82.48%   +0.01%     
==================================================
  Files                 168      168              
  Lines               48083    48108      +25     
==================================================
+ Hits                39658    39684      +26     
+ Misses               8425     8424       -1     
Impacted Files Coverage Δ
arrow/src/array/array_union.rs 89.88% <100.00%> (+0.61%) ⬆️
parquet_derive/src/parquet_field.rs 66.81% <0.00%> (+0.22%) ⬆️

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 bfac9e5...e7e50df. Read the comment docs.

@alamb alamb merged commit 01743f3 into active_release Oct 27, 2021
@alamb alamb deleted the cherry_pick_05eb63f8 branch October 27, 2021 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants