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

[jira] [Created] (ARROW-12962) Arrow:Scalar needed for GLib and ruby

Dominic Sisneros created ARROW-12962:
----------------------------------------

             Summary: Arrow:Scalar needed for  GLib and ruby
                 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


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)