Skip to content

ArrayData.align_buffers should support Struct data type / child data #6461

@EnricoMi

Description

@EnricoMi

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Method ArrayData.align_buffers ensures that data in the array buffers are aligned. This is needed if data come from IPC or FFI. In case of DataType::Struct, mis-aligned buffers are currently not aligned by this method, because it only aligns self.buffers, not buffers of self.child_data.

Describe the solution you'd like
Make ArrayData.align_buffers align buffers of child data recursively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions