huaxingao commented on pull request #29222: URL: https://github.com/apache/spark/pull/29222#issuecomment-663708688
The change looks reasonable to me. I checked the examples, most of the examples have RDD.collect().foreach, but a few of the examples have RDD.foreach. For example, in ```ElementwiseProductExample``` ``` println("transformedData: ") transformedData.foreach(x => println(x)) println("transformedData2: ") transformedData2.foreach(x => println(x)) ``` I think we probably also want to change these to make all the examples to output the result on the driver's stdout. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org