Skip to content

[SPARK-58354][PYTHON] Remove unused ArrowStreamPandasSerializer base class - #57544

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

[SPARK-58354][PYTHON] Remove unused ArrowStreamPandasSerializer base class#57544
Yicong-Huang wants to merge 1 commit into
apache:masterfrom
Yicong-Huang:SPARK-58354

Conversation

@Yicong-Huang

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Remove the unused ArrowStreamPandasSerializer base class. After all Pandas UDF serializer subclasses were removed (ArrowStreamPandasUDFSerializer, GroupPandasUDFSerializer, ArrowStreamAggPandasUDFSerializer, ApplyInPandasWithStateSerializer, CogroupPandasUDFSerializer, TransformWithStateInPandasSerializer), the base class became an orphan with no subclasses, no instantiations, and no other references anywhere in the Python tree. This also drops the now-orphaned _normalize_packed helper (only used by that class) and the imports that are no longer needed.

Why are the changes needed?

Dead code cleanup. The class and its sole helper are unreachable.

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.

@uros-b

uros-b commented Jul 26, 2026

Copy link
Copy Markdown
Member

Thank you @Yicong-Huang!

Yicong-Huang added a commit that referenced this pull request Jul 27, 2026
…class

### What changes were proposed in this pull request?

Remove the unused `ArrowStreamPandasSerializer` base class. After all Pandas UDF serializer subclasses were removed (`ArrowStreamPandasUDFSerializer`, `GroupPandasUDFSerializer`, `ArrowStreamAggPandasUDFSerializer`, `ApplyInPandasWithStateSerializer`, `CogroupPandasUDFSerializer`, `TransformWithStateInPandasSerializer`), the base class became an orphan with no subclasses, no instantiations, and no other references anywhere in the Python tree. This also drops the now-orphaned `_normalize_packed` helper (only used by that class) and the imports that are no longer needed.

### Why are the changes needed?

Dead code cleanup. The class and its sole helper are unreachable.

### 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 #57544 from Yicong-Huang/SPARK-58354.

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 e8d5e4a)
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

@Yicong-Huang

Yicong-Huang commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @HyukjinKwon @zhengruifeng @uros-b , I've merged the PR. that's the last serializer to remove. we can now declare serializer refactoring completed!

We are down from 24 serializers to only 4 now. The main remaining ones are ArrowStreamSerializer, ArrowStreamGroupSerializer and ArrowStreamCoGroupSerializer. Each corresponding to a group of eval types.

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.

4 participants