Skip to content

[Ruby][Integration] Integration tests fail due to undefined method 'array' for an instance of ArrowFormat::UTF8Array #49634

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

Integration tests are failing with:

  FAILED TEST: dictionary Ruby producing,  Ruby consuming
  <class 'RuntimeError'>: Command failed: ARROW=/tmp/tmpnpb6lsfn/345fe4a9_generated_dictionary.json_as_file COMMAND=json-to-file JSON=/tmp/arrow-integration-wmrtth84/generated_dictionary.json /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test
  With output:
  --------------
  /arrow/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb:282: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
  /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:119:in 'block in ArrowFormat::StreamingWriter#write_dictionary': undefined method 'array' for an instance of ArrowFormat::UTF8Array (NoMethodError)
  
          data = dictionary.array
                           ^^^^^^
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:118:in 'Array#each'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:118:in 'ArrowFormat::StreamingWriter#write_dictionary'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:46:in 'block in ArrowFormat::StreamingWriter#write_record_batch'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:43:in 'Array#each'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:43:in 'Enumerable#each_with_index'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/streaming-writer.rb:43:in 'ArrowFormat::StreamingWriter#write_record_batch'
  	from /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test:35:in 'block (3 levels) in <main>'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb:32:in 'block in ArrowFormat::Integration::JSONReader#each'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb:31:in 'Array#each'
  	from /arrow/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb:31:in 'ArrowFormat::Integration::JSONReader#each'
  	from /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test:34:in 'block (2 levels) in <main>'
  	from /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test:31:in 'IO.open'
  	from /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test:31:in 'block in <main>'
  	from /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test:29:in 'IO.open'
  	from /arrow/ruby/red-arrow-format/bin/red-arrow-format-integration-test:29:in '<main>'

Component(s)

Ruby, Integration

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions