You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/11/29 07:59:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated ARROW-18119:
-----------------------------------
    Labels: pull-request-available  (was: )

> [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
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)