You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2021/06/12 05:12:00 UTC

[jira] [Updated] (ARROW-12962) [GLib][Ruby] Add Arrow:Scalar

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

Kouhei Sutou updated ARROW-12962:
---------------------------------
    Summary: [GLib][Ruby] Add Arrow:Scalar  (was: Arrow:Scalar needed for  GLib and ruby)

> [GLib][Ruby] Add Arrow:Scalar
> -----------------------------
>
>                 Key: ARROW-12962
>                 URL: https://issues.apache.org/jira/browse/ARROW-12962
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: GLib, Ruby
>    Affects Versions: 4.0.1
>            Reporter: Dominic Sisneros
>            Assignee: Kouhei Sutou
>            Priority: Major
>
> In ruby trying to use compute kernals.  For the kernels that take a scalar there is no way to make on in GLib or ruby 
> ar= Arrow::Array.new([0,1,1,1,1,2,3,4,2,6,7])
> fun = Arrow::Function.find('add')
> needed = Arrow::Scalar.new(3)
> sum = fun.execute([Arrow::ArrayDatum.new(ar)]).value



--
This message was sent by Atlassian Jira
(v8.3.4#803005)