example shows `forEachPartition`, not `mapPartitions`
example shows
forEachPartition, notmapPartitions