Yicong-Huang opened a new pull request, #54188: URL: https://github.com/apache/spark/pull/54188
### What changes were proposed in this pull request? Rewrite `test_pyarrow_array_cast.py` (~9000 lines) into ~500 lines using `GoldenFileTestMixin` with golden CSV/MD files. Each source type is split into isolated test cases (e.g. `int8:standard`, `int8:negative`, `int8:max_min`) to prevent edge cases from masking each other. Also enhanced `GoldenFileTestMixin`: - `repr_type()`: Arrow DataType support (normalises float names) - `setup_timezone()`: works without Spark session - `compare_or_generate_golden_matrix()`: new reusable matrix comparison method ### Why are the changes needed? To simplify testing. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `python -m pytest python/pyspark/tests/upstream/pyarrow/test_pyarrow_array_cast.py` passes in both generation and comparison modes. ### 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]
