apache/spark — pull request #2045 by davies (2014-08-19 23:58:50+00:00)
Title: [SPARK-3141] [PySpark] fix sortByKey() with take()

Fix sortByKey() with take()

The function `f` used in mapPartitions should always return an iterator.