zhengruifeng opened a new pull request, #58159:
URL: https://github.com/apache/spark/pull/58159

   ### What changes were proposed in this pull request?
   
   This PR updates `LocalDataToArrowConversion.convert` to build 
column-oriented Python
   lists directly while normalizing local rows. It avoids first materializing a 
separate
   `rows` list and then transposing it into `pylist`.
   
   ### Why are the changes needed?
   
   The intermediate `rows` list duplicates batch-sized Python objects before 
Arrow
   conversion. Building `pylist` directly reduces temporary object 
materialization in
   the local-data-to-Arrow path.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Not tested yet. This is a draft PR for review of the implementation approach.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI 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]

Reply via email to