Skip to content

[SPARK-56741][PYTHON] Remove unused GroupPandasUDFSerializer#55705

Closed
Yicong-Huang wants to merge 1 commit into
apache:masterfrom
Yicong-Huang:SPARK-56741
Closed

[SPARK-56741][PYTHON] Remove unused GroupPandasUDFSerializer#55705
Yicong-Huang wants to merge 1 commit into
apache:masterfrom
Yicong-Huang:SPARK-56741

Conversation

@Yicong-Huang
Copy link
Copy Markdown
Contributor

@Yicong-Huang Yicong-Huang commented 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.

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>
@zhengruifeng
Copy link
Copy Markdown
Contributor

merged to master/4.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants