Repository navigation
GH-50571: [Ruby] Add schema-aware ArrowFormat::RecordBatch construction - #51214
Merged
kou merged 3 commits intoSep 8, 2026
Merged
Conversation
kou
reviewed
Sep 8, 2026
emecii
force-pushed
the
feat/ruby-arrow-format-record-batch-schema
branch
from
September 8, 2026 05:19
9199203 to
3f5fb39
Compare
kou
reviewed
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
ArrowFormat::RecordBatch.new(values)infers a schema from Ruby values. This adds the corresponding schema-aware constructor so callers can preserve intended Arrow types while building from Ruby rows or columns.What changes are included in this PR?
ArrowFormat::RecordBatch.new(schema, values)for row- and column-oriented Ruby values.Are these changes tested?
Yes. The
red-arrow-formatsuite passes locally (690 tests, 693 assertions), including the focused record-batch tests. The existingred-arrowrecord-batch suite also passes (21 tests, 21 assertions).Are there any user-facing changes?
Yes.
AI assistance
AI assistance drafted the implementation and tests. The final scope was checked against the existing two-argument
Arrow::RecordBatch.newcontract and the one-argumentArrowFormat::RecordBatchAPI; the validation commands above were run locally.ArrowFormat::RecordBatch.new(schema, values)#50571