arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[Ruby] Add `ArrowFormat::FixedSizeListArray.new(type, values)`

Open emecii opened this issue 2 months ago • 2 comments

Describe the enhancement requested

GH-50382 tracks a public builder API for red-arrow-format. In the maintainer discussion, the requested direction is to support explicit constructors for all existing ArrowFormat::Type subclasses before exposing the broader builder API, with nested types handled as separate tasks.

ArrowFormat::FixedSizeListArray currently only accepts the low-level reader/writer form:

ArrowFormat::FixedSizeListArray.new(type, size, validity_buffer, child)

Add the object-oriented values form:

ArrowFormat::FixedSizeListArray.new(type, values)

The constructor should preserve the existing low-level form, validate that every non-null list has exactly the declared fixed size, build the parent validity bitmap, preserve the required fixed number of child slots for null parents, and delegate child construction to the declared child field type.

This is a focused prerequisite for GH-50382 and is separate from variable-size ListArray support in GH-51262.

Component(s)

Ruby

emecii avatar Sep 10 '26 05:09 emecii

take

emecii avatar Sep 10 '26 05:09 emecii

Issue resolved by pull request 51274 https://github.com/apache/arrow/pull/51274

kou avatar Sep 24 '26 05:09 kou