You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2022/07/08 02:07:00 UTC

[jira] [Resolved] (ARROW-16757) [C++] Remove "scalar" output modality from array kernels

     [ https://issues.apache.org/jira/browse/ARROW-16757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-16757.
----------------------------------
    Fix Version/s: 9.0.0
       Resolution: Fixed

Issue resolved by pull request 13521
[https://github.com/apache/arrow/pull/13521]

> [C++] Remove "scalar" output modality from array kernels
> --------------------------------------------------------
>
>                 Key: ARROW-16757
>                 URL: https://issues.apache.org/jira/browse/ARROW-16757
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 9.0.0
>
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> Supporting scalar outputs from array kernels (where all the inputs are scalars) introduces needless complexity into the kernel implementations, causing duplication of effort and excess code generation for paltry benefit. In the scenario where all inputs are scalars, it would be better to promote them all to arrays of length 1 (either by creating the arrays or constructing an appropriate ArraySpan per ARROW-16756) and invoking the array code path. This would enable us to delete thousands of lines of code and ease the ongoing development and maintenance of the array kernels codebase



--
This message was sent by Atlassian Jira
(v8.20.10#820010)