Description
This is a kind of a followup of SPARK-32646. New JIRA was filed to control the fixed versions properly.
When you use map, it might be lazily evaluated and not executed. To avoid this, we should better use foreach.
See also SPARK-16694