emecii opened a new pull request, #51263:
URL: https://github.com/apache/arrow/pull/51263

   ### Rationale for this change
   
   GH-50382 identified list arrays as a prerequisite for a consistent public 
typed-array builder API. This adds the separately requested list constructor.
   
   ### What changes are included in this PR?
   
   * Add `ArrowFormat::ListArray.new(type, values)` while preserving the 
existing buffer-based constructor.
   * Build list validity, offsets, and the child array from nested Ruby values 
using the declared child type.
   * Cover empty lists, null lists, and null child values.
   
   ### Are these changes tested?
   
   Yes. The `red-arrow-format` suite passes locally (694 tests, 705 assertions).
   
   ### Are there any user-facing changes?
   
   Yes. Callers can construct an `ArrowFormat::ListArray` directly from a list 
type and nested Ruby values.
   
   ### AI assistance
   
   AI assistance drafted the implementation and tests. The final patch was 
reviewed against the existing typed constructors and low-level list array 
representation, and the focused and full package tests were run locally.
   
   * GitHub Issue: #51262
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to