You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jörn Horstmann (Jira)" <ji...@apache.org> on 2021/01/16 11:37:00 UTC

[jira] [Created] (ARROW-11267) [Rust]: Comparison of list arrays with differing offsets fails

Jörn Horstmann created ARROW-11267:
--------------------------------------

             Summary: [Rust]: Comparison of list arrays with differing offsets fails
                 Key: ARROW-11267
                 URL: https://issues.apache.org/jira/browse/ARROW-11267
             Project: Apache Arrow
          Issue Type: Bug
          Components: Rust
            Reporter: Jörn Horstmann


Found this while reviewing the fix for ARROW-11239. The reason for the failure seems to be related to the combining of null bitmaps of parent/child data. When I changed `create_list_array` to not include null buffers the test passes.
{code:java}
    #[test]
    fn test_list_different_offsets() {
        let a =
            create_list_array(&[Some(&[0, 0]), Some(&[1, 2]), Some(&[3, 4])]);
        let b =
            create_list_array(&[Some(&[1, 2]), Some(&[3, 4]), Some(&[5, 6])]);        let a_slice = a.slice(1, 2);
        let b_slice = b.slice(0, 2);
        test_equal(&a_slice, &b_slice, true);
    } {code}
[~jorgecarleitao] [~nevi_me] FYI



--
This message was sent by Atlassian Jira
(v8.3.4#803005)