[ 
https://issues.apache.org/jira/browse/ARROW-14982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454127#comment-17454127
 ] 

Antoine Pitrou commented on ARROW-14982:
----------------------------------------

Well, you can have some sliced buffers and others unsliced, for example in a 
struct array. And you may not always know upfront if some buffers have been 
sliced...

That said, let's add this and we can improve it later (for example make it more 
flexible).


> [C++][Python] Create utils for deep-copying an Array/ ArrayData
> ---------------------------------------------------------------
>
>                 Key: ARROW-14982
>                 URL: https://issues.apache.org/jira/browse/ARROW-14982
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++, Python
>            Reporter: Niranda Perera
>            Priority: Major
>
> Hi, I would like to request a util to deep copy an Array with the following 
> semantic. 
>  
> {code:java}
> Result<shared_ptr<ArrayData>> DeepCopyArrayData(const ArrayData& arr, int64 
> offset = 0, int64 length = -1/*, pool=...*/);
> {code}
>  
> This was discussed some time back in Zulip [1]. 
>  
> [1] 
> [https://ursalabs.zulipchat.com/#narrow/stream/180245-dev/topic/create.20a.20deep.20copy.20of.20buffers]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to