-
Notifications
You must be signed in to change notification settings - Fork 786
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
Calculate n_buffers in FFI_ArrowArray by data layout #1960
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1960 +/- ##
==========================================
+ Coverage 83.47% 83.48% +0.01%
==========================================
Files 221 221
Lines 57054 57117 +63
==========================================
+ Hits 47626 47685 +59
- Misses 9428 9432 +4
Continue to review full report at Codecov.
|
cc @sunchao |
@@ -450,7 +450,17 @@ impl FFI_ArrowArray { | |||
let buffers = iter::once(data.null_buffer().cloned()) | |||
.chain(data.buffers().iter().map(|b| Some(b.clone()))) | |||
.collect::<Vec<_>>(); | |||
let n_buffers = buffers.len() as i64; | |||
let data_layout = layout(data.data_type()); | |||
// `n_buffers` is the number of buffers by the spec. |
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.
Seems unrelated test failure.
|
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
Thanks @sunchao |
Which issue does this PR close?
Closes #1959.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?