You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "nil68657 (via GitHub)" <gi...@apache.org> on 2026/10/11 21:34:24 UTC
[PR] GH-40319: [Python] Accept null list scalars in pa.array [arrow]
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40319: [Python] Accept null list scalars in pa.array [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #53261:
URL: https://github.com/apache/arrow/pull/53261#issuecomment-6114101242
:warning: GitHub issue #40319 **has been automatically assigned in GitHub** to PR creator.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40319: [Python] Accept null list scalars in pa.array [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic closed pull request #53261: GH-40319: [Python] Accept null list scalars in pa.array
URL: https://github.com/apache/arrow/pull/53261
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40319: [Python] Accept null list scalars in pa.array [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on PR #53261:
URL: https://github.com/apache/arrow/pull/53261#issuecomment-6128108464
Thanks for the PR. I’m closing it because [Arrow’s contributor guidelines](https://arrow.apache.org/docs/developers/overview.html) require that AI-generated code be reviewed and understood by the person submitting it:
> Only submit a PR if you are able to debug and own the changes yourself – review all generated code to understand every detail
Once you’ve reviewed the changes and can own them yourself, you’re welcome to open a new PR.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org