Skip to content

[SPARK-58262][PYTHON] Remove ArrowStreamPandasUDFSerializer#57433

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

[SPARK-58262][PYTHON] Remove ArrowStreamPandasUDFSerializer#57433
Yicong-Huang wants to merge 1 commit into
apache:masterfrom
Yicong-Huang:SPARK-58262

Conversation

@Yicong-Huang

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Remove the ArrowStreamPandasUDFSerializer class from python/pyspark/sql/pandas/serializers.py.

Why are the changes needed?

All non-grouped Pandas eval types (SQL_SCALAR_PANDAS_UDF, SQL_SCALAR_PANDAS_ITER_UDF, SQL_MAP_PANDAS_ITER_UDF) were refactored to use ArrowStreamSerializer with ArrowBatchTransformer, and the last remaining subclass ApplyInPandasWithStateSerializer was removed in SPARK-58243. The class no longer has any instantiation sites, so it can be removed.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests. No behavior change.

Was this patch authored or co-authored using generative AI tooling?

No.

Yicong-Huang added a commit that referenced this pull request Jul 23, 2026
### What changes were proposed in this pull request?

Remove the `ArrowStreamPandasUDFSerializer` class from `python/pyspark/sql/pandas/serializers.py`.

### Why are the changes needed?

All non-grouped Pandas eval types (`SQL_SCALAR_PANDAS_UDF`, `SQL_SCALAR_PANDAS_ITER_UDF`, `SQL_MAP_PANDAS_ITER_UDF`) were refactored to use `ArrowStreamSerializer` with `ArrowBatchTransformer`, and the last remaining subclass `ApplyInPandasWithStateSerializer` was removed in SPARK-58243. The class no longer has any instantiation sites, so it can be removed.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Existing tests. No behavior change.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #57433 from Yicong-Huang/SPARK-58262.

Authored-by: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com>
Signed-off-by: Yicong-Huang <17627829+Yicong-Huang@users.noreply.github.com>
(cherry picked from commit d44c1ea)
Signed-off-by: Yicong-Huang <17627829+Yicong-Huang@users.noreply.github.com>
@Yicong-Huang

Copy link
Copy Markdown
Contributor Author

Merge Summary:

Posted by merge_spark_pr.py

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.

3 participants