[ 
https://issues.apache.org/jira/browse/SPARK-37485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-37485:
------------------------------------

    Assignee: Apache Spark

> Replace map with expressions which produce no result with foreach 
> ------------------------------------------------------------------
>
>                 Key: SPARK-37485
>                 URL: https://issues.apache.org/jira/browse/SPARK-37485
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Yang Jie
>            Assignee: Apache Spark
>            Priority: Minor
>
> Use foreach instead of  map with expressions which produce no result.
>  
> Before
>  
> {code:java}
> def functionWithNoReturnValue: Unit = {}  
> Seq(1, 2).map(functionWithNoReturnValue) {code}
>  
>  
> After
>  
> {code:java}
> def functionWithNoReturnValue: Unit = {}   
> Seq(1, 2).foreach(functionWithNoReturnValue) {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to