RE: mapPartitioningWithIndex in Dataframe

2017-08-05 Thread Mendelson, Assaf
partition id and then do mapPartitions). Thanks, Assaf. From: Lalwani, Jayesh [mailto:jayesh.lalw...@capitalone.com] Sent: Thursday, August 03, 2017 5:20 PM To: user@spark.apache.org Subject: mapPartitioningWithIndex in Dataframe Are there any plans to add mapPartitioningWithIndex in the

mapPartitioningWithIndex in Dataframe

2017-08-03 Thread Lalwani, Jayesh
Are there any plans to add mapPartitioningWithIndex in the Dataframe API? Or is there any way to implement my own mapPartitionWithIndex for a Dataframe? I am implementing something which is logically similar to the randomSplit function. In 2.1, randomSplit internally does df.mapPartitionWithInde