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

   ### Rationale for this change
   
   The list converter treated a pyarrow ListScalar as a Python sequence and
   called len() on it, which fails for a null scalar. Append Arrow scalars
   directly, as the other converters already do.
   
   ### What changes are included in this PR?
   
   - `python/pyarrow/src/arrow/python/python_to_arrow.cc`
   
   ### Are these changes tested?
   
   Yes. A regression test in `python/pyarrow/tests/test_convert_builtin.py` 
fails without the change and passes with it; the surrounding test module/binary 
passes.
   
   ### Are there any user-facing changes?
   
   See the rationale above.
   
   ### Was AI used for this PR?
   
   This PR is a joint contribution from Nilanjan Chatterjee 
([@nil68657](https://github.com/nil68657)) and Claude (Claude Opus 5.5, via 
Claude Code). Nilanjan chose the issue and directed the work; Claude reproduced 
the bug, wrote the fix, the test and this description.
   
   **PR code and description written by:**
   
   - [ ] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [ ] Human
   - [x] AI
   - [ ] Not reviewed
   
   * GitHub Issue: #40319
   


-- 
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