[SPARK-56741][PYTHON] Remove unused GroupPandasUDFSerializer#55705
Closed
Yicong-Huang wants to merge 1 commit into
Closed
[SPARK-56741][PYTHON] Remove unused GroupPandasUDFSerializer#55705Yicong-Huang wants to merge 1 commit into
Yicong-Huang wants to merge 1 commit into
Conversation
zhengruifeng
approved these changes
May 6, 2026
zhengruifeng
pushed a commit
that referenced
this pull request
May 6, 2026
### What changes were proposed in this pull request? Delete `GroupPandasUDFSerializer` from `python/pyspark/sql/pandas/serializers.py`. ### Why are the changes needed? `GroupPandasUDFSerializer` is no longer used after SPARK-56477 refactored `SQL_GROUPED_MAP_PANDAS_UDF` and SPARK-56691 refactored `SQL_GROUPED_MAP_PANDAS_ITER_UDF` to use `ArrowStreamGroupSerializer` directly. This class can be safely deleted. Part of SPARK-55384. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests: `pyspark.sql.tests.pandas.test_pandas_grouped_map`. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #55705 from Yicong-Huang/SPARK-56741. Authored-by: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com> Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com> (cherry picked from commit e7db186) Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>
Contributor
|
merged to master/4.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Delete
GroupPandasUDFSerializerfrompython/pyspark/sql/pandas/serializers.py.Why are the changes needed?
GroupPandasUDFSerializeris no longer used after SPARK-56477 refactoredSQL_GROUPED_MAP_PANDAS_UDFand SPARK-56691 refactoredSQL_GROUPED_MAP_PANDAS_ITER_UDFto useArrowStreamGroupSerializerdirectly. This class can be safely deleted.Part of SPARK-55384.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests:
pyspark.sql.tests.pandas.test_pandas_grouped_map.Was this patch authored or co-authored using generative AI tooling?
No.