You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "Yicong-Huang (via GitHub)" <gi...@apache.org> on 2026/07/21 21:39:16 UTC
[PR] [SPARK-58243][PYTHON] Remove unused ApplyInPandasWithStateSerializer [spark]
Yicong-Huang opened a new pull request, #57409:
URL: https://github.com/apache/spark/pull/57409
### What changes were proposed in this pull request?
Delete the now-unused `ApplyInPandasWithStateSerializer`. After SPARK-58189 refactored `SQL_GROUPED_MAP_PANDAS_UDF_WITH_STATE` to extract its logic into `read_udfs()` (state management and Pandas conversion moved into the wrapper) and use `ArrowStreamSerializer` directly, this class is dead code. Imports left unused by the deletion (`CPickleSerializer`, `to_arrow_type`, `StringType`, `BinaryType`, `LongType`, `IntegerType`) are removed, and a stale class-name reference in a benchmark docstring is reworded.
Part of SPARK-55384.
### Why are the changes needed?
The class is no longer referenced anywhere; removing it and its dead imports keeps `serializers.py` lean.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing tests. No behavior change. `pyspark.sql.tests.pandas.test_pandas_grouped_map_with_state` passes.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58243][PYTHON] Remove unused ApplyInPandasWithStateSerializer [spark]
Posted by "uros-b (via GitHub)" <gi...@apache.org>.
uros-b commented on PR #57409:
URL: https://github.com/apache/spark/pull/57409#issuecomment-5048000680
Thank you @Yicong-Huang!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58243][PYTHON] Remove unused ApplyInPandasWithStateSerializer [spark]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on PR #57409:
URL: https://github.com/apache/spark/pull/57409#issuecomment-5048760143
**Merge Summary:**
- merged into master https://github.com/apache/spark/commit/600e36181180be3f62c88cd4eb1529411fd095c7
- merged into branch-4.x https://github.com/apache/spark/commit/15833ed8df2f8e3512b269413107cec5d3feb03d
*Posted by `merge_spark_pr.py`*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58243][PYTHON] Remove unused ApplyInPandasWithStateSerializer [spark]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang closed pull request #57409: [SPARK-58243][PYTHON] Remove unused ApplyInPandasWithStateSerializer
URL: https://github.com/apache/spark/pull/57409
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58243][PYTHON] Remove unused ApplyInPandasWithStateSerializer [spark]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on PR #57409:
URL: https://github.com/apache/spark/pull/57409#issuecomment-5048764762
Thanks @HyukjinKwon @uros-b !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org