Skip to content

[Rust]: Comparison of list arrays with differing offsets fails #27168

@asfimport

Description

@asfimport

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.

    #[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);
    } 

@jorgecarleitao [~nevi_me] FYI

Reporter: Jörn Horstmann / @jhorstmann

Related issues:

Note: This issue was originally created as ARROW-11267. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions