Yicong-Huang opened a new pull request, #53939:
URL: https://github.com/apache/spark/pull/53939

   ### What changes were proposed in this pull request?
   
   Add `PyArrowNestedTypeCastTests` to test `pa.Array.cast()` for container 
types (`list`, `large_list`, `fixed_size_list`, `map`, `struct`) and their 
nested variants.
   
   - 11 test methods, 123 test cases total
   - Covers successful casts (e.g., list↔large_list, map→list<struct>)
   - Covers expected failures (e.g., list→map, container→scalar)
   
   ### Why are the changes needed?
   
   Part of [SPARK-54936](https://issues.apache.org/jira/browse/SPARK-54936) to 
monitor upstream PyArrow behavior changes. Detects breaking changes when 
upgrading PyArrow versions.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   `pytest 
python/pyspark/tests/upstream/pyarrow/test_pyarrow_array_cast.py::PyArrowNestedTypeCastTests
 -v`
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to