You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2026/04/01 09:37:31 UTC
[PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
kou opened a new pull request, #49635:
URL: https://github.com/apache/arrow/pull/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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #49635:
URL: https://github.com/apache/arrow/pull/49635#issuecomment-4171604730
After merging your PR, Conbench analyzed the 2 benchmarking runs that have been run so far on merge-commit 3c25e693cb6037cc682c79b09798727b24f655b4.
There were no benchmark performance regressions. 🎉
The [full Conbench report](https://github.com/apache/arrow/runs/69567036202) has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou merged PR #49635:
URL: https://github.com/apache/arrow/pull/49635
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #49635:
URL: https://github.com/apache/arrow/pull/49635#issuecomment-4168818838
:warning: GitHub issue #49634 **has been automatically assigned in GitHub** to PR creator.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #49635:
URL: https://github.com/apache/arrow/pull/49635#issuecomment-4169088361
+1
Integration test passes again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #49635:
URL: https://github.com/apache/arrow/pull/49635#discussion_r3020962805
##########
ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb:
##########
@@ -384,7 +384,8 @@ def read_array(column, type)
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)
Review Comment:
`read_dictionary` can return `nil` when the dictionary id isn't present in the JSON. Wrapping that in `Dictionary.new(type.id, dictionary_array)` will defer the failure to a later `NoMethodError` (e.g., when `DictionaryArray#to_a` calls `dictionary.array`). Consider raising a clear exception here if `dictionary_array` is `nil` (include the dictionary id and value type) to fail fast with an actionable error.
```suggestion
dictionary_array = read_dictionary(type.id, type.value_type)
if dictionary_array.nil?
raise "Dictionary with id #{type.id} and value type " \
"#{type.value_type.inspect} is missing from JSON dictionaries"
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-49634: [Ruby][Integration] Follow dictionary array API change [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #49635:
URL: https://github.com/apache/arrow/pull/49635#issuecomment-4171602723
After merging your PR, Conbench analyzed the 2 benchmarking runs that have been run so far on merge-commit 3c25e693cb6037cc682c79b09798727b24f655b4.
There were no benchmark performance regressions. 🎉
The [full Conbench report](https://github.com/apache/arrow/runs/69566979403) has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org