You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2019/06/03 14:51:00 UTC

[jira] [Commented] (ARROW-1774) [C++] Add "view" function to create zero-copy views for compatible types, if supported

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

Antoine Pitrou commented on ARROW-1774:
---------------------------------------

What is meant here by "same physical memory layout"? For example, should we allow a view of int32 as float32? If so, it's not the same thing as casting.

> [C++] Add "view" function to create zero-copy views for compatible types, if supported
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-1774
>                 URL: https://issues.apache.org/jira/browse/ARROW-1774
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 0.14.0
>
>
> Similar to NumPy's {{ndarray.view}}, but with the restriction that the input and output types have the same physical Arrow memory layout. This might be as simple as adding a "zero copy only" option to the existing {{Cast}} kernel



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)