[ https://issues.apache.org/jira/browse/ARROW-7843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17176514#comment-17176514 ]
Dominic Sisneros commented on ARROW-7843: ----------------------------------------- Thank you - I pushed to get it uploaded to the pacman repository on the gitter channel since it was taking so long. https://gitter.im/msys2/msys2. Thanks for all your work > [Ruby] MSYS2 packages needed for Gandiva > ---------------------------------------- > > Key: ARROW-7843 > URL: https://issues.apache.org/jira/browse/ARROW-7843 > Project: Apache Arrow > Issue Type: Bug > Components: Ruby > Affects Versions: 0.16.0 > Environment: windows with rubyinstaller > Reporter: Dominic Sisneros > Assignee: Kouhei Sutou > Priority: Major > Fix For: 1.0.0 > > > {noformat} > require "gandiva" > table = Arrow::Table.new(:field1 => Arrow::Int32Array.new([1, 2, 3, 4]), > :field2 => Arrow::Int32Array.new([11, 13, 15, 17])) > schema = table.schema > expression1 = schema.build_expression do |record| > record.field1 + record.field2 > end > expression2 = schema.build_expression do |record, context| > context.if(record.field1 > record.field2) > .then(record.field1 / record.field2) > .else(record.field1) > end > projector = Gandiva::Projector.new(schema, [expression1, expression2]) > table.each_record_batch do |record_batch| > outputs = projector.evaluate(record_batch) > puts outputs.collect(&:values) > end > C:\Users\Dominic E Sisneros\source\repos\ruby\try_arrow>ruby gandiva_test2.rb > Traceback (most recent call last): > 2: from gandiva_test2.rb:1:in `<main>' > 1: from > c:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in > `require' > c:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in > `require': cannot load such file -- gandiva (LoadError) > 9: from gandiva_test2.rb:1:in `<main>' > 8: from > c:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in > `require' > 7: from > c:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in > `rescue in require' > 6: from > c:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in > `require' > 5: from > c:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/red-gandiva-0.16.0/lib/gandiva.rb:24:in > `<top (required)>' > 4: from > c:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/red-gandiva-0.16.0/lib/gandiva.rb:28:in > `<module:Gandiva>' > 3: from > c:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/red-gandiva-0.16.0/lib/gandiva/loader.rb:22:in > `load' > 2: from > c:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/gobject-introspection-3.4.1/lib/gobject-introspection/loader.rb:25:in > `load' > 1: from > c:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/gobject-introspection-3.4.1/lib/gobject-introspection/loader.rb:37:in > `load' > c:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/gobject-introspection-3.4.1/lib/gobject-introspection/loader.rb:37:in > `require': Typelib file for namespace 'Gandiva' (any version) not found > (GObjectIntrospection::RepositoryError::TypelibNotFound) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)