This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 3c25e693cb GH-49634: [Ruby][Integration] Follow dictionary array API
change (#49635)
3c25e693cb is described below
commit 3c25e693cb6037cc682c79b09798727b24f655b4
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Apr 1 19:27:18 2026 +0900
GH-49634: [Ruby][Integration] Follow dictionary array API change (#49635)
### Rationale for this change
GH-49621 changed dictionary array related API but we didn't follow the API
change in integration test code.
### What changes are included in this PR?
Follow dictionary array related API change in integration test code.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
* GitHub Issue: #49634
Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb
b/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb
index 3660e8af34..162f36fb68 100644
--- a/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb
+++ b/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb
@@ -384,7 +384,8 @@ module ArrowFormat
when DictionaryType
validity_buffer = read_bitmap(column["VALIDITY"])
indices_buffer = read_values(column["DATA"], type.index_type)
- dictionary = read_dictionary(type.id, type.value_type)
+ dictionary_array = read_dictionary(type.id, type.value_type)
+ dictionary = Dictionary.new(type.id, dictionary_array)
type.build_array(length,
validity_buffer,
indices_buffer,