[ 
https://issues.apache.org/jira/browse/ARROW-4914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16795770#comment-16795770
 ] 

Chao Sun commented on ARROW-4914:
---------------------------------

Thanks [~nevi_me]! I think the failure for this JIRA is because {{is_null}} and 
{{is_valid}} in {{Array}} do not consider offset, the second failure is because 
the invariant check in {{From<ArrayDataRef> for ListArray}} is wrong. Both 
should be an easy fix. Will post a PR soon.

> [Rust] Array slice returns incorrect bitmask
> --------------------------------------------
>
>                 Key: ARROW-4914
>                 URL: https://issues.apache.org/jira/browse/ARROW-4914
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>    Affects Versions: 0.13.0
>            Reporter: Neville Dipale
>            Priority: Blocker
>
> Slicing arrays changes the offset, length and null count of their array data, 
> but the bitmask is not changed.
> This results in the correct null count, but the array values might be marked 
> incorrectly as valid/invalid based on the old bitmask positions before the 
> offset.
> To reproduce, create an array with some null values, slice the array, and 
> then dbg!() it (after downcasting).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to