Skip to content

GH-49389: [Ruby] Add support for custom metadata in field and schema#49390

Merged
kou merged 1 commit into
apache:mainfrom
kou:ruby-custom-metadata
Feb 26, 2026
Merged

GH-49389: [Ruby] Add support for custom metadata in field and schema#49390
kou merged 1 commit into
apache:mainfrom
kou:ruby-custom-metadata

Conversation

@kou
Copy link
Copy Markdown
Member

@kou kou commented Feb 25, 2026

Rationale for this change

We can add custom metadata to Field and Schema.

What changes are included in this PR?

  • Add ArrowFormat::Field#metadata
  • Add ArrowFormat::Schema#metadata
  • Add support for reading and writing custom metadata in Field and Schema

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Collaborator

@hiroyuki-sato hiroyuki-sato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

LD_LIBRARY_PATH=/tmp/local/lib:/path/to/arrow/red-arrow/ext/arrow/ GI_TYPELIB_PATH=/tmp/local/lib/girepository-1.0 rake -I /path/to/arrow/ruby/red-arrow/lib test
cd /path/to/arrow/ruby/red-arrow-format
/path/to/.rbenv/versions/3.4.7/bin/ruby test/run.rb
Loaded suite test
Started
/path/to/arrow/ruby/red-arrow-format/lib/arrow-format/file-reader.rb:41: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
Finished in 3.256675261 seconds.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
292 tests, 292 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
89.66 tests/s, 89.66 assertions/s
cd -

@kou kou merged commit dc5b76e into apache:main Feb 26, 2026
14 checks passed
@kou kou removed the awaiting committer review Awaiting committer review label Feb 26, 2026
@kou kou deleted the ruby-custom-metadata branch February 26, 2026 01:00
@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 dc5b76e.

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.

thisisnic pushed a commit to thisisnic/arrow that referenced this pull request Apr 6, 2026
…chema (apache#49390)

### Rationale for this change

We can add custom metadata to `Field` and `Schema`.

### What changes are included in this PR?

* Add `ArrowFormat::Field#metadata`
* Add `ArrowFormat::Schema#metadata`
* Add support for reading and writing custom metadata in `Field` and `Schema`

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#49389

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