SPARK-1109 wrong API docs for pyspark map function