Spenserrrr opened a new pull request, #58903: URL: https://github.com/apache/spark/pull/58903
### What changes were proposed in this pull request? Move element-wise UDF flattening, re-nesting, and batch concatenation into `ArrowBatchTransformer`. Route pandas inputs and outputs through batch-level converters while preserving pandas, Arrow, and row-at-a-time Python UDF contracts. ### Why are the changes needed? The element-wise worker unpacked Arrow arrays and called a private column converter, coupling it to conversion internals. A RecordBatch boundary lets those internals change without rewriting worker orchestration. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added `test_concat_batches` and `test_flatten_elementwise_inputs_and_renest_outputs`, which fail without the new transformer APIs, and ran the conversion and HOF suites under pandas 2/PyArrow 24 and pandas 3/PyArrow 25. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-5) -- 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]
