Yicong-Huang opened a new pull request, #54228: URL: https://github.com/apache/spark/pull/54228
### What changes were proposed in this pull request? Compute float16 version overrides dynamically instead of hardcoding string values. PyArrow < 21 uses numpy's float16 formatting for `str(scalar)`, which varies across numpy versions (scientific notation in >= 2.4, decimal in < 2.4). This fixes CI failures on environments with numpy 1.26. ### Why are the changes needed? CI (Python 3.10, PyArrow 18, numpy 1.26) fails with: ``` int16:max_min -> float16: expected '[3.277e+04, -3.277e+04, None]@float16', got '[32770.0, -32770.0, None]@float16' ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Tested locally across Python 3.10/3.11/3.12 with PyArrow 18 and 23. ### 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]
