You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2026/08/26 11:06:00 UTC

[jira] [Assigned] (SPARK-58991) Remove dead and broken AutoSerializer class

     [ https://issues.apache.org/jira/browse/SPARK-58991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruifeng Zheng reassigned SPARK-58991:
-------------------------------------

    Assignee: Yicong Huang

> 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
>            Assignee: Yicong Huang
>            Priority: Major
>              Labels: pull-request-available
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org