Yicong-Huang opened a new pull request, #54161: URL: https://github.com/apache/spark/pull/54161
This is a re-apply of #53963, which was reverted due to a failing CI job. ### What changes were proposed in this pull request? Extract the `to_pandas` conversion logic from serializers into `ArrowBatchTransformer.to_pandas()`. This refactors multiple serializers (`GroupPandasUDFSerializer`, `CogroupPandasUDFSerializer`, `ApplyInPandasWithStateSerializer`, etc.) to use the new transformer instead of inline conversion logic. ### Why are the changes needed? This is part of Phase 1 of [SPARK-55159](https://issues.apache.org/jira/browse/SPARK-55159) to improve the composability of Arrow serializers by separating data transformation from serialization. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
