Yicong-Huang opened a new pull request, #57409: URL: https://github.com/apache/spark/pull/57409
### What changes were proposed in this pull request? Delete the now-unused `ApplyInPandasWithStateSerializer`. After SPARK-58189 refactored `SQL_GROUPED_MAP_PANDAS_UDF_WITH_STATE` to extract its logic into `read_udfs()` (state management and Pandas conversion moved into the wrapper) and use `ArrowStreamSerializer` directly, this class is dead code. Imports left unused by the deletion (`CPickleSerializer`, `to_arrow_type`, `StringType`, `BinaryType`, `LongType`, `IntegerType`) are removed, and a stale class-name reference in a benchmark docstring is reworded. Part of SPARK-55384. ### Why are the changes needed? The class is no longer referenced anywhere; removing it and its dead imports keeps `serializers.py` lean. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. No behavior change. `pyspark.sql.tests.pandas.test_pandas_grouped_map_with_state` passes. ### 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]
