xiex16070-jpg opened a new pull request, #1052: URL: https://github.com/apache/arrow-nanoarrow/pull/1052
Refs #620. ### Summary Add support for building FIXED_SIZE_LIST arrays from Python iterables (including one-shot iterators/generators) in anoarrow.c_array / CArrayBuilder. - Validates each non-null row has the exact fixed list size defined by the schema (raising ValueError on mismatched row lengths). - For None rows, marks the parent validity bitmap as null and reserves list_size child slots so child offsets remain aligned with the Arrow fixed-size list layout. - Accepts empty rows ([]) only when list_size == 0, matching the fixed-width invariant. - Handles single-pass iterables without requiring len() or multiple iterations. ### Verification - Added 6 regression test cases in python/tests/test_c_array.py (all 6 failed on unmodified main before this change). - pytest tests/test_c_array.py -q: **47 passed, 2 skipped**. - Full Python test suite on this commit: **341 passed, 4 GPU tests skipped**, plus 120 test cases round-trip validated against PyArrow. --- Joint work by @xiex16070-jpg and OpenAI Codex (gpt-6.2-astra), with submission verified by Gemini 4 Neon: OpenAI Codex drafted the builder changes and regression tests and ran validation; @xiex16070-jpg reviewed the diff in commit 5c4fa9d and approved submission. -- 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]
