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

Write validity buffer for UnionArray in V4 IPC message #1794

Merged
merged 4 commits into from Jun 6, 2022

Conversation

viirya
Copy link
Member

@viirya viirya commented Jun 5, 2022

Which issue does this PR close?

Closes #1793.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2022

Codecov Report

Merging #1794 (47fe6ea) into master (73d552a) will increase coverage by 0.00%.
The diff coverage is 95.12%.

@@           Coverage Diff           @@
##           master    #1794   +/-   ##
=======================================
  Coverage   83.39%   83.40%           
=======================================
  Files         198      198           
  Lines       56205    56244   +39     
=======================================
+ Hits        46872    46909   +37     
- Misses       9333     9335    +2     
Impacted Files Coverage Δ
arrow/src/ipc/writer.rs 81.78% <95.12%> (+0.85%) ⬆️
parquet/src/encodings/encoding.rs 93.46% <0.00%> (-0.20%) ⬇️
arrow/src/datatypes/datatype.rs 65.79% <0.00%> (+0.37%) ⬆️

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 73d552a...47fe6ea. Read the comment docs.

Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

Nice find 👍


{
let file = File::open(&file_name).unwrap();
let reader = FileReader::try_new(file, None).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how hard this would be to test, but perhaps we should test what null mask is actually written (I think the reader simply ignores it)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, the reader just ignores it like C++ reader does. So I skip null mask test.

@tustvold tustvold merged commit e3191e7 into apache:master Jun 6, 2022
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.

IPC writer should write validity buffer for UnionArray in V4 IPC message
3 participants