Yicong-Huang opened a new pull request, #58275: URL: https://github.com/apache/spark/pull/58275
### What changes were proposed in this pull request? Remove the dead and broken `AutoSerializer` class from `python/pyspark/serializers.py`, along with its two references in `python/pyspark/tests/test_serializers.py`. ### Why are the changes needed? `AutoSerializer` is dead and broken code: - 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 `test_serializers.py` (an import plus a `hash()` call). ### Does this PR introduce _any_ user-facing change? No. The class is not part of the public API and is non-functional. ### How was this patch tested? Existing `python/pyspark/tests/test_serializers.py` still passes after removing the unused import and `hash()` line. ### 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]
