Skip to content

GH-48306: [Ruby] Add support for reading binary array - #48307

Merged
kou merged 1 commit into
apache:mainfrom
kou:ruby-binary-array
Dec 2, 2025
Merged

kou merged 1 commit into
apache:mainfrom
kou:ruby-binary-array

Conversation

@kou

@kou kou commented Dec 2, 2025 •

Copy link
Copy Markdown
Member

Rationale for this change

We can use this as a base feature for UTF-8/large binary/large UTF-8 array.

What changes are included in this PR?

  • Add ArrowFormat::BinaryType
  • Add ArrowFormat::BinaryArray
  • Add support Binary FlatBuffers type

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions

github-actions Bot commented Dec 2, 2025

Copy link
Copy Markdown

⚠️ GitHub issue #48306 has been automatically assigned in GitHub to PR creator.

@hiroyuki-sato

Copy link
Copy Markdown
Collaborator

+1

tested on Ubuntu 24.04.

LD_LIBRARY_PATH=/tmp/local/lib GI_TYPELIB_PATH=/tmp/local/lib/girepository-1.0 ./test/run.rb
Loaded suite test
Started
/path/to/arrow/ruby/red-arrow-format/lib/arrow-format/file-reader.rb:49: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
Finished in 0.047644133 seconds.
--------------------------------------------------------------------------------
3 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
62.97 tests/s, 62.97 assertions/s

@kou
kou merged commit db6ac11 into apache:main Dec 2, 2025
@kou
kou deleted the ruby-binary-array branch December 2, 2025 22:06
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit db6ac11.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.

Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
…8307)

### Rationale for this change

We can use this as a base feature for UTF-8/large binary/large UTF-8 array.

### What changes are included in this PR?

* Add `ArrowFormat::BinaryType`
* Add `ArrowFormat::BinaryArray`
* Add support `Binary` FlatBuffers type

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#48306

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants