-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-38630: [MATLAB] arrow.array.BooleanArray's toMATLAB method does not take slice offsets into account
#38636
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
Conversation
|
The dev failure seems unrelated to my changes. |
|
Looks like #38639 will fix the Dev/Lint CI failure. |
|
Looks like the Dev GitHub Action failure was fixed by #38639. |
kevingurney
left a comment
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.
Looks good! Thank you for fixing this!
|
+1 |
|
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 4983885. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 9 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…od does not take slice offsets into account (apache#38636) ### Rationale for this change While working on apache#38415, I noticed that the `toMATLAB` method of `arrow.array.BooleanArray` does not take the slice offset into account. This will cause the `toMATLAB` method to return the wrong value. ### What changes are included in this PR? 1. Updated `arrow::matlab::bit::unpack` function to accept a `start_offset` as input. 2. Updated clients (`BooleanArray::toMATLAB` and `Array::getValid`) to supply the array `offset` as the `start_offset`. ### Are these changes tested? The existing tests cover these changes. Additionally, the changes for apache#38415 will include tests that verify the `toMATLAB` method returns the correct MATLAB array when the underlying Arrow array has been sliced. ### Are there any user-facing changes? No. * Closes: apache#38630 Authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
…od does not take slice offsets into account (apache#38636) ### Rationale for this change While working on apache#38415, I noticed that the `toMATLAB` method of `arrow.array.BooleanArray` does not take the slice offset into account. This will cause the `toMATLAB` method to return the wrong value. ### What changes are included in this PR? 1. Updated `arrow::matlab::bit::unpack` function to accept a `start_offset` as input. 2. Updated clients (`BooleanArray::toMATLAB` and `Array::getValid`) to supply the array `offset` as the `start_offset`. ### Are these changes tested? The existing tests cover these changes. Additionally, the changes for apache#38415 will include tests that verify the `toMATLAB` method returns the correct MATLAB array when the underlying Arrow array has been sliced. ### Are there any user-facing changes? No. * Closes: apache#38630 Authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
Rationale for this change
While working on #38415, I noticed that the
toMATLABmethod ofarrow.array.BooleanArraydoes not take the slice offset into account. This will cause thetoMATLABmethod to return the wrong value.What changes are included in this PR?
arrow::matlab::bit::unpackfunction to accept astart_offsetas input.BooleanArray::toMATLABandArray::getValid) to supply the arrayoffsetas thestart_offset.Are these changes tested?
The existing tests cover these changes. Additionally, the changes for #38415 will include tests that verify the
toMATLABmethod returns the correct MATLAB array when the underlying Arrow array has been sliced.Are there any user-facing changes?
No.
arrow.array.BooleanArray'stoMATLABmethod does not take slice offsets into account #38630