You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Sanjiban Sengupta (Jira)" <ji...@apache.org> on 2022/10/28 14:57:00 UTC

[jira] [Assigned] (ARROW-18119) [C++] Utility method to ensure an array object meetings an alignment requirement

     [ https://issues.apache.org/jira/browse/ARROW-18119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjiban Sengupta reassigned ARROW-18119:
-----------------------------------------

    Assignee: Sanjiban Sengupta

> [C++] Utility method to ensure an array object meetings an alignment requirement
> --------------------------------------------------------------------------------
>
>                 Key: ARROW-18119
>                 URL: https://issues.apache.org/jira/browse/ARROW-18119
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: C++
>            Reporter: Weston Pace
>            Assignee: Sanjiban Sengupta
>            Priority: Major
>
> This would look something like:
> EnsureAligned(Buffer|Array|ChunkedArray|RecordBatch|Table, int minimum_alignment, MemoryPool* memory_pool);
> It would fail if MemoryPool's alignment < minimum_alignment
> It would iterate through each buffer of the object, if the object is not aligned properly, it would reallocate and copy the buffer (using memory_pool)
> It would return a new object where every buffer is guaranteed to meet the alignment requirements.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)