DB Tsai created SPARK-61102:
-------------------------------
Summary: Reject unsupported NumPy longdouble scalar classes as
PySpark does
Key: SPARK-61102
URL: https://issues.apache.org/jira/browse/SPARK-61102
Project: Spark
Issue Type: Bug
Components: Connect
Affects Versions: connect-rust-4.3.0
Reporter: DB Tsai
The Rust Python client accepts a NumPy longdouble scalar as a Double literal on
macOS arm64, where longdouble has an 8-byte dtype equal to float64 but remains
a distinct Python scalar class. Official PySpark 4.3.0 rejects that scalar
class with AssertionError after DoubleType inference. For larger longdouble
dtypes it rejects the unsupported type with PySparkTypeError. The native
dtype-kind/itemsize dispatch currently misses the scalar-class check.
Add the corresponding class guard while preserving supported float32/float64
literals and arrays. Correct the existing offline regression to assert
platform-dependent reference error behavior rather than assuming every
longdouble dtype raises PySparkTypeError. This existing baseline failure was
reproduced during the Python/Rust compatibility fixes.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]