Skip to content

get_array_data_memory_size does not return correct results for listarray slices #519

@Kontinuation

Description

@Kontinuation

arrow-rs propagates the slice for a StructArray on slice(): https://docs.rs/arrow-array/57.2.0/src/arrow_array/array/struct_array.rs.html#337

It doesn't do this for list arrays: https://docs.rs/arrow-array/57.2.0/src/arrow_array/array/list_array.rs.html#396 ...and possibly not for some other types like dictionaries, list views, or run-end-encoded

See this comment #515 (comment) and the failing test case: https://github.com/apache/sedona-db/pull/515/files#diff-5fdc254a5ea41059acecb8588e449aae6b354d4886deecbe3b2ffec3628c4b06R257-R290

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions