Yicong-Huang opened a new pull request, #53778: URL: https://github.com/apache/spark/pull/53778
### What changes were proposed in this pull request? Add comprehensive tests for PyArrow's `pa.Array.cast()` method with default arguments (safe=True) to monitor upstream PyArrow behavior changes. **21 test methods** covering: - **All numeric types**: int8-64, uint8-64, float16/32/64, bool (all combinations) - **String/binary**: string, large_string, binary, large_binary - **Temporal**: date32/64, timestamp[s/ms/us/ns], duration, time - **Decimal**: decimal128/256 - **Complex types**: list, large_list, fixed_size_list, struct, map - **Deeply nested**: list\<list\<T\>\>, struct\<a: struct\<b: T\>\>, list\<struct\<T\>\>, etc. - **NumPy/Pandas**: np.int8-64, pd.Int64Dtype(), pd.ArrowDtype() - **Edge cases**: NaN, Inf, null arrays, boundary values ### 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. Tests only. ### How was this patch tested? New tests in `python/pyspark/tests/upstream/pyarrow/test_pyarrow_array_cast.py` ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
