Haotian Sun created SPARK-61401:
-----------------------------------
Summary: Update macOS unsafe cast expectations for PyArrow 26
Key: SPARK-61401
URL: https://issues.apache.org/jira/browse/SPARK-61401
Project: Spark
Issue Type: Sub-task
Components: PySpark, Tests
Affects Versions: 4.4.0, 5.0.0
Reporter: Haotian Sun
Fix For: 4.4.0, 5.0.0
PyArrow 26 changes two unsafe scalar casts on macOS ARM64, causing
PyArrowScalarTypeCastTests.test_scalar_cast_matrix_unsafe to fail. For example,
casting float32 -1.5 to uint16 with safe=False returns 0 instead of 65535.
Add macOS ARM64 overrides for PyArrow >=26.0.0 while retaining the shared
golden files and older-version expectations.
Implemented in https://github.com/apache/spark/pull/60291, already merged into
master (dc0022b60a0dc9488dbb962a6d855633a7acbd7c) and branch-4.x
(939331db6bd397e073d998ddb352eed35aa775db).
Native macOS ARM64 probes with PyArrow 25.0.1, 26.0.0 and 26.0.1 verified the
version boundary. Full macOS CI passed, including all four array-cast tests
without skips: https://github.com/Spenserrrr/spark/actions/runs/42780021328
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]