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/05/14 01:54:00 UTC
[jira] [Closed] (ARROW-4567) [C++] Convert Scalar values to Array
values with length 1
[ https://issues.apache.org/jira/browse/ARROW-4567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes McKinney closed ARROW-4567.
-------------------------------
Resolution: Won't Fix
We'll deal with Scalar as a first class citizen in the compute algebra for executing array kernels
> [C++] Convert Scalar values to Array values with length 1
> ---------------------------------------------------------
>
> Key: ARROW-4567
> URL: https://issues.apache.org/jira/browse/ARROW-4567
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
>
> A common approach to performing operations on both scalar and array values is to treat a Scalar as an array of length 1. For example, we cannot currently use our Cast kernels to cast a Scalar. It would be senseless to create separate kernel implementations specialized for a single value, and much easier to promote a scalar to an Array, execute the kernel, then unbox the result back into a Scalar
--
This message was sent by Atlassian Jira
(v8.3.4#803005)