{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5927","labels_url":"https://api.github.com/repos/apache/spark/issues/5927/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5927/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5927/events","html_url":"https://github.com/apache/spark/pull/5927","id":73463021,"number":5927,"title":"[SPARK-7385][Core] Added RDD.foreachPartitionWithIndex","user":{"login":"tdas","id":663212,"avatar_url":"https://avatars.githubusercontent.com/u/663212?v=3","gravatar_id":"","url":"https://api.github.com/users/tdas","html_url":"https://github.com/tdas","followers_url":"https://api.github.com/users/tdas/followers","following_url":"https://api.github.com/users/tdas/following{/other_user}","gists_url":"https://api.github.com/users/tdas/gists{/gist_id}","starred_url":"https://api.github.com/users/tdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdas/subscriptions","organizations_url":"https://api.github.com/users/tdas/orgs","repos_url":"https://api.github.com/users/tdas/repos","events_url":"https://api.github.com/users/tdas/events{/privacy}","received_events_url":"https://api.github.com/users/tdas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-05T23:33:43Z","updated_at":"2015-05-05T23:47:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5927","html_url":"https://github.com/apache/spark/pull/5927","diff_url":"https://github.com/apache/spark/pull/5927.diff","patch_url":"https://github.com/apache/spark/pull/5927.patch"},"body":"Spark Streaming apps often update external stores transactionally, which requires it to have an id that uniquely identifies the partition of data to be inserted. This can be the (time, partition index).\r\nCurrent work around is to use mapPartitionsWithIndex().count() which is awkward as it is not an action. This PR is to add foreachPartitionWithIndex(). "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/99263231","html_url":"https://github.com/apache/spark/pull/5927#issuecomment-99263231","issue_url":"https://api.github.com/repos/apache/spark/issues/5927","id":99263231,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T23:47:10Z","updated_at":"2015-05-05T23:47:10Z","body":" Merged build triggered."}}