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

   ### What changes were proposed in this pull request?
   
   This PR implements `DataFrame.foreach` by using Python UDF in Spark Connect
   
   ### Why are the changes needed?
   
   For API parity.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, it adds a new API into Python Spark Connect client.
   
   ### How was this patch tested?
   
   Manually tested with `local-cluster`, and checking the logs:
   
   ```python
   def func(r):
       print(r)
   
   spark.range(10).foreach(func)
   ```
   
   ![Screenshot 2023-08-29 at 1 02 28 
PM](https://github.com/apache/spark/assets/6477701/36fa6e11-a7a3-41db-9c98-1cba515b59f7)
   
   Doctest will be reused too.
   
   ### 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]

Reply via email to