Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Bug fix in offset for sliced unions #891

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

ncpenke
Copy link
Contributor

@ncpenke ncpenke commented Mar 7, 2022

No description provided.

offsets: self
.offsets
.clone()
.map(|offsets| offsets.slice(offset, length)),
Copy link
Contributor Author

@ncpenke ncpenke Mar 7, 2022

Choose a reason for hiding this comment

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

@jorgecarleitao For dense unions wasn't sure if slicing the offsets or using (index + offset) in field_slot was more correct.

@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #891 (b6b7ae6) into main (81bfadd) will not change coverage.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #891   +/-   ##
=======================================
  Coverage   70.30%   70.30%           
=======================================
  Files         343      343           
  Lines       18768    18768           
=======================================
  Hits        13194    13194           
  Misses       5574     5574           
Impacted Files Coverage Δ
src/array/union/mod.rs 81.08% <66.66%> (ø)

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 81bfadd...b6b7ae6. Read the comment docs.

@jorgecarleitao jorgecarleitao added the bug Something isn't working label Mar 7, 2022
@jorgecarleitao jorgecarleitao merged commit b0774c8 into jorgecarleitao:main Mar 7, 2022
@jorgecarleitao
Copy link
Owner

Thanks a lot @ncpenke , this is indeed a bug.

ritchie46 pushed a commit to ritchie46/arrow2 that referenced this pull request Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants