[SPARK-58157][PYTHON] Remove TransformWithStateInPySparkRowInitStateSerializer#57438
Open
Yicong-Huang wants to merge 1 commit into
Open
[SPARK-58157][PYTHON] Remove TransformWithStateInPySparkRowInitStateSerializer#57438Yicong-Huang wants to merge 1 commit into
Yicong-Huang wants to merge 1 commit into
Conversation
Yicong-Huang
force-pushed
the
SPARK-58157
branch
from
July 22, 2026 21:39
f42524d to
d7535d8
Compare
HyukjinKwon
approved these changes
Jul 22, 2026
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
TransformWithStateInPySparkRowInitStateSerializerfrompython/pyspark/sql/pandas/serializers.py. Its init-state deserialization logic was moved intoread_udfs()inworker.pyby SPARK-58191 (#57337), which switchedSQL_TRANSFORM_WITH_STATE_PYTHON_ROW_INIT_STATE_UDFto use the plainArrowStreamSerializerfor pure Arrow stream I/O. The class is no longer referenced by any eval type. A benchmark comment inbench_eval_type.pythat attributed the row-by-row walk to this class is updated to point atread_udfs().Part of SPARK-55384.
Why are the changes needed?
The class is dead code after the refactor in SPARK-58191. Removing it keeps serializers as pure I/O and avoids a stale, unused class.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests. This is a dead-code deletion with no remaining references (verified repo-wide, including dynamic lookups); behavior is unchanged since the eval type already runs through
read_udfs().Was this patch authored or co-authored using generative AI tooling?
No.