[SPARK-58314][PYTHON] Remove ArrowStreamUDFSerializer - #57507
Closed
Yicong-Huang wants to merge 1 commit into
Closed
[SPARK-58314][PYTHON] Remove ArrowStreamUDFSerializer#57507Yicong-Huang wants to merge 1 commit into
Yicong-Huang wants to merge 1 commit into
Conversation
dongjoon-hyun
approved these changes
Jul 24, 2026
uros-b
approved these changes
Jul 24, 2026
Member
|
Thank you for the cleanup @Yicong-Huang! |
Yicong-Huang
added a commit
that referenced
this pull request
Jul 26, 2026
### What changes were proposed in this pull request? Removes the now-unused `ArrowStreamUDFSerializer` class from `python/pyspark/sql/pandas/serializers.py`, and updates two stale docstring references to it in `conversion.py` (`ArrowBatchTransformer.flatten_struct` / `wrap_struct`). After the PythonEvalType refactor moved serializer construction into `worker.py` and its last subclass `TransformWithStateInPySparkRowSerializer` was removed (SPARK-58297), `ArrowStreamUDFSerializer` has no remaining runtime users. The `flatten_struct` / `wrap_struct` transformer methods it used to call are retained -- they are still used directly by the Arrow UDF mappers in `worker.py`. ### Why are the changes needed? Dead-code cleanup. Part of SPARK-55388. ### 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 #57507 from Yicong-Huang/SPARK-58314. 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 c7b2f1a) Signed-off-by: Yicong-Huang <17627829+Yicong-Huang@users.noreply.github.com>
Contributor
Author
Contributor
Author
|
Thanks @dongjoon-hyun and @uros-b ! |
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?
Removes the now-unused
ArrowStreamUDFSerializerclass frompython/pyspark/sql/pandas/serializers.py, and updates two stale docstring references to it inconversion.py(ArrowBatchTransformer.flatten_struct/wrap_struct).After the PythonEvalType refactor moved serializer construction into
worker.pyand its last subclassTransformWithStateInPySparkRowSerializerwas removed (SPARK-58297),ArrowStreamUDFSerializerhas no remaining runtime users. Theflatten_struct/wrap_structtransformer methods it used to call are retained -- they are still used directly by the Arrow UDF mappers inworker.py.Why are the changes needed?
Dead-code cleanup. Part of SPARK-55388.
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.