You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/06/02 16:24:00 UTC
[jira] [Commented] (ARROW-7313) [C++] Add function for retrieving a
scalar from an array slot
[ https://issues.apache.org/jira/browse/ARROW-7313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17124005#comment-17124005 ]
Wes McKinney commented on ARROW-7313:
-------------------------------------
Is this done?
> [C++] Add function for retrieving a scalar from an array slot
> -------------------------------------------------------------
>
> Key: ARROW-7313
> URL: https://issues.apache.org/jira/browse/ARROW-7313
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Affects Versions: 0.15.1
> Reporter: Ben Kietzman
> Assignee: Ben Kietzman
> Priority: Major
> Fix For: 1.0.0
>
>
> It'd be useful to construct scalar values given an array and an index.
> {code}
> /* static */ std::shared_ptr<Scalar> Scalar::FromArray(const Array&, int64_t);
> {code}
> Since this is much less efficient than unboxing the entire array and accessing its buffers directly, it should not be used in hot loops.
> [~kszucs] [~fsaintjacques]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)