peter-toth opened a new pull request #31955:
URL: https://github.com/apache/spark/pull/31955


   ### What changes were proposed in this pull request?
   This PR is a small fix to a regression introduced with 
https://github.com/apache/spark/pull/28979. The result conversion of typed 
Scala UDFs should copy their `InternalRow` results as there can be multiple 
calls to the same UDF in a row. (e.g. with `transform_values`). 
   
   ### Why are the changes needed?
   To fix a bug.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, some queries work again.
   
   ### How was this patch tested?
   Added new UT.
   


-- 
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.

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