You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2023/08/29 04:10:03 UTC

[GitHub] [spark] HyukjinKwon opened a new pull request, #42714: [SPARK-45000][PYTHON][CONNECT] Implement DataFrame.foreach

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #42714: [SPARK-45000][PYTHON][CONNECT] Implement DataFrame.foreach

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #42714:
URL: https://github.com/apache/spark/pull/42714#issuecomment-1697056154

   All tests passed. Merged to master for Apache Spark 4.0.0.


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun closed pull request #42714: [SPARK-45000][PYTHON][CONNECT] Implement DataFrame.foreach

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #42714: [SPARK-45000][PYTHON][CONNECT] Implement DataFrame.foreach
URL: https://github.com/apache/spark/pull/42714


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org