Skip to content

Commit dfb5bea

Browse files
authored
GH-48432: [CI][Ruby] Don't run Red Arrow Format tests with Ruby 3.1 (#48434)
### Rationale for this change Ruby 3.1 has `IO::Buffer` but it doesn't provide some efficient methods such as `#each` and `#values`. So we don't support Ruby 3.1. FYI: Ruby 3.1 reached EOL. ### What changes are included in this PR? Don't run Red Arrow Format tests with Ruby 3.1. We don't add `required_ruby_version` in `.gemspec`. Red Arrow Format provides `#to_a` for convenient and `#each`/`#values` are used in `#to_a`. But I don't want to use `#to_a` as much as possible because it's slow. Users should use another Apache Arrow implementation to process Apache Arrow data. Red Arrow Format is fast only for serialization/deserialization because of zero-copy. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #48432 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 3cf59d8 commit dfb5bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ packages = []
2525
Dir.glob("#{base_dir}/*/*.gemspec") do |gemspec|
2626
package = File.basename(File.dirname(gemspec))
2727
if package == "red-arrow-format"
28-
next if RUBY_VERSION < "3.1.0"
28+
next if RUBY_VERSION < "3.2.0"
2929
else
3030
glib_package_name = package.gsub(/\Ared-/, "") + "-glib"
3131
next unless PKGConfig.exist?(glib_package_name)

0 commit comments

Comments
 (0)