Skip to content

GH-48412: [Ruby] Add support for reading date32 array#48413

Merged
kou merged 1 commit intoapache:mainfrom
kou:ruby-date32-array
Dec 9, 2025
Merged

GH-48412: [Ruby] Add support for reading date32 array#48413
kou merged 1 commit intoapache:mainfrom
kou:ruby-date32-array

Conversation

@kou
Copy link
Copy Markdown
Member

@kou kou commented Dec 9, 2025

Rationale for this change

It's a day variant of date array.

What changes are included in this PR?

  • Add ArrowFormat::Date32Type
  • Add ArrowFormat::Date32Array
  • Add a missing test for float64 array (This is not related. Sorry.)

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 9, 2025

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

@hiroyuki-sato hiroyuki-sato self-requested a review December 9, 2025 11:09
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 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:62: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
Finished in 0.183524749 seconds.
--------------------------------------------------------------------------------
13 tests, 13 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
70.84 tests/s, 70.84 assertions/s

case fb_type.unit
when Org::Apache::Arrow::Flatbuf::DateUnit::DAY
type = Date32Type.singleton
end
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just in case: DateUnit::MILLISECOND will implement aonther PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes. It's for date64 array.

@kou kou merged commit 9c1a05c into apache:main Dec 9, 2025
12 checks passed
@kou kou deleted the ruby-date32-array branch December 9, 2025 21:32
@kou kou removed the awaiting committer review Awaiting committer review label Dec 9, 2025
@github-actions github-actions bot added the awaiting changes Awaiting changes label Dec 9, 2025
@kou
Copy link
Copy Markdown
Member Author

kou commented Dec 10, 2025

@github-actions crossbow submit test-debian-ruby

@github-actions
Copy link
Copy Markdown

Revision: 77c2e03

Submitted crossbow builds: ursacomputing/crossbow @ actions-50eb834dfd

Task Status
test-debian-ruby GitHub Actions

@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 9c1a05c.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

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