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

   ### Rationale for this change
   
   The C++ struct-to-struct cast (GH-17882) has no Python test, as noted in 
#35408.
   
   ### What changes are included in this PR?
   
   Adds `test_struct_cast_*` tests in `python/pyarrow/tests/test_compute.py` 
covering: a null-typed field cast to int64 (the example from the GH-17882 
discussion), field type changes, reordering/dropping/adding fields (matched by 
name), nullability, and nested structs.
   
   ### Are these changes tested?
   
   These are tests only. I ran them against the released pyarrow 26.0.1 wheel 
(all 5 pass); I did not build the C++ library locally.
   
   ### Are there any user-facing changes?
   
   No.
   
   ### Was AI used for this PR?
   
   **PR code and description written by:**
   
   - [ ] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [ ] Human
   - [x] AI
   - [ ] Not reviewed
   
   The tests and this description were generated by an AI agent (Claude Code) 
working for me. The agent probed the actual cast behaviour with the released 
wheel and wrote the assertions from that.
   
   Closes #35408
   


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