arrow icon indicating copy to clipboard operation
arrow copied to clipboard

GH-48488: [GLib][Ruby] Add GArrowListSliceOptions

Open stenlarsson opened this issue 2 weeks ago • 2 comments

Rationale for this change

The ListSliceOptions class is not available in GLib/Ruby, and it is used together with the list_slice compute function.

What changes are included in this PR?

This adds the ListSliceOptions class to GLib.

Are these changes tested?

Yes, with Ruby unit tests.

Are there any user-facing changes?

Yes, a new class.

  • GitHub Issue: #48488

stenlarsson avatar Dec 14 '25 14:12 stenlarsson

:warning: GitHub issue #48488 has been automatically assigned in GitHub to PR creator.

github-actions[bot] avatar Dec 14 '25 14:12 github-actions[bot]

The property return_fixed_size_list has the type std::optional<bool>. While it would make sense in Ruby, I couldn't figure out how to set a boolean to null in GLib, so I created an enum instead.

stenlarsson avatar Dec 14 '25 14:12 stenlarsson

Good idea! I added Ruby wrappers for both the return_fixed_size_array and stop methods.

Unfortunately the tests fails due to https://github.com/apache/arrow/issues/48610.

stenlarsson avatar Dec 20 '25 13:12 stenlarsson