Yicong Huang created SPARK-58991:
------------------------------------
Summary: Remove dead and broken AutoSerializer class
Key: SPARK-58991
URL: https://issues.apache.org/jira/browse/SPARK-58991
Project: Spark
Issue Type: Improvement
Components: PySpark
Affects Versions: 4.2.0
Reporter: Yicong Huang
The `AutoSerializer` class in `python/pyspark/serializers.py` is dead and
broken code and should be removed.
* It is not exported in `__all__` and has no production callers.
* Its `loads()` is broken under Python 3: it reads `_type = obj[0]`, which
yields an `int` rather than a `bytes` value like `b"M"`/`b"P"`, so the type
check never matches and every call raises `ValueError`.
* The only reference is a smoke test in
`python/pyspark/tests/test_serializers.py` (an import plus a `hash()` call).
Proposed: delete the class and its two test references.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]