Repository navigation
GH-49208: [Ruby] Add support for writing dictionary delta message - #49209
Merged
Merged
Conversation
|
|
hiroyuki-sato
approved these changes
Feb 10, 2026
hiroyuki-sato
left a comment
Collaborator
There was a problem hiding this comment.
+1
(This PR contains many changes. I just tested on the local machine.)
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:40: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
Finished in 1.751186457 seconds.
--------------------------------------------------------------------------------
194 tests, 194 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
110.78 tests/s, 110.78 assertions/s
cd -
| @values = table.value.values | ||
| end | ||
| def file_extension | ||
| "arrows" |
Collaborator
There was a problem hiding this comment.
Just for interest: Use arrow and arrows intentionally?
class TestFileWriter < Test::Unit::TestCase
def file_extension
"arrow"
end
end
class TestStreamingWriter < Test::Unit::TestCase
def file_extension
"arrows"
end
end
Member
Author
There was a problem hiding this comment.
Yes.
https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format
We recommend the “.arrows” file extension for the streaming format although in many cases these streams will not ever be stored as files.
Mottl
pushed a commit
to Mottl/arrow
that referenced
this pull request
May 26, 2026
…ge (apache#49209) ### Rationale for this change This focuses on implementing base dictionary delta message support mechanism. So this adds support for only UTF-8 array as dictionary. Other arrays will be supported in follow-up tasks. ### What changes are included in this PR? * Add support for `ArrowFromat#slice` (But it's not completed. It just works partially.) * If the second record batch includes an updated dictionary (new entries are appended), these appended entries are sliced and they are only written as delta. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: apache#49208 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
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
This focuses on implementing base dictionary delta message support mechanism. So this adds support for only UTF-8 array as dictionary. Other arrays will be supported in follow-up tasks.
What changes are included in this PR?
ArrowFromat#slice(But it's not completed. It just works partially.)Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.