You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/01/19 21:14:00 UTC

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

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

Andrew Lamb commented on ARROW-11267:
-------------------------------------

When I tested on https://github.com/apache/arrow/pull/9211/files -- this test case still fails (aka https://github.com/apache/arrow/pull/9211 does not seem to fix it)

> [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
>            Priority: Major
>
> 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)