Yicong-Huang opened a new pull request, #55808: URL: https://github.com/apache/spark/pull/55808
### What changes were proposed in this pull request? Refactor `SQL_GROUPED_AGG_PANDAS_UDF` to use `ArrowStreamGroupSerializer` as a pure I/O layer, moving the per-group pandas conversion and UDF invocation into `read_udfs()` in `worker.py`. The custom `ArrowStreamAggPandasUDFSerializer` is no longer used for this eval type (still used by `SQL_GROUPED_AGG_PANDAS_ITER_UDF` and `SQL_WINDOW_AGG_PANDAS_UDF`). ### Why are the changes needed? Part of SPARK-55388. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. No behavior change. ASV benchmark comparison (master vs this branch, `GroupedAggPandasUDFTimeBench` / `GroupedAggPandasUDFPeakmemBench`, `-a repeat=3`): ```text TODO: results pending; current bench harness on master fails with KeyError: 'connInfo' (SPARK-56519 added the field to the worker protocol but did not update python/benchmarks/bench_eval_type.py). Will update once the harness can run. ``` ### 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]
