You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/06/29 21:22:00 UTC
[jira] [Commented] (ARROW-9270) [C++] Create Buffer to represent a
slice of a ResizableBuffer that may yet reallocate
[ https://issues.apache.org/jira/browse/ARROW-9270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17148146#comment-17148146 ]
Antoine Pitrou commented on ARROW-9270:
---------------------------------------
Out of curiosity, what is the use case?
> [C++] Create Buffer to represent a slice of a ResizableBuffer that may yet reallocate
> -------------------------------------------------------------------------------------
>
> Key: ARROW-9270
> URL: https://issues.apache.org/jira/browse/ARROW-9270
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
>
> One problem with slicing ResizableBuffer is that slices of a buffer that is still changing may be invalidated after a resize operation. I'd be interested in having a way to slice a ResizableBuffer where the slice is still usable after a resize. This would presume, of course, that the code responsible for the parent and child buffers behaves appropriately (e.g. if you call {{child->data()}} and then resize the parent, the pointer may become invalid
--
This message was sent by Atlassian Jira
(v8.3.4#803005)