[ https://issues.apache.org/jira/browse/ARROW-14982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454046#comment-17454046 ]
Niranda Perera commented on ARROW-14982: ---------------------------------------- [~apitrou] I thought the method signature was self-explanatory. :D Requirement is to deep copy an array from an offset (default, 0) to a length (default, length - offset). Yes, the zulip chat was about buffer offsets, but the main requirement was to deep copy arrays ultimately. [~lidavidm] I am not entirely sure if we could use Concatenate (in general sense). May be, current concatenation does a deep copy even when we pass a single array vector. But, I think we could check offset=0 and return the input array (no copy) without violating the "concat" semantic IMO. > [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)