Yang Jie created SPARK-37485: -------------------------------- Summary: 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
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