{"action":"closed","number":11091,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11091","id":58411223,"html_url":"https://github.com/apache/spark/pull/11091","diff_url":"https://github.com/apache/spark/pull/11091.diff","patch_url":"https://github.com/apache/spark/pull/11091.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/11091","number":11091,"state":"closed","locked":false,"title":"[Core] Doc: PairRDDFunctions.reduceByKey should be stated as requiring a commutative binary op","user":{"login":"YPares","id":1377233,"avatar_url":"https://avatars.githubusercontent.com/u/1377233?v=3","gravatar_id":"","url":"https://api.github.com/users/YPares","html_url":"https://github.com/YPares","followers_url":"https://api.github.com/users/YPares/followers","following_url":"https://api.github.com/users/YPares/following{/other_user}","gists_url":"https://api.github.com/users/YPares/gists{/gist_id}","starred_url":"https://api.github.com/users/YPares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YPares/subscriptions","organizations_url":"https://api.github.com/users/YPares/orgs","repos_url":"https://api.github.com/users/YPares/repos","events_url":"https://api.github.com/users/YPares/events{/privacy}","received_events_url":"https://api.github.com/users/YPares/received_events","type":"User","site_admin":false},"body":"According to http://stackoverflow.com/questions/35205107/spark-difference-of-semantics-between-reduce-and-reducebykey , PairRDDFunctions.reduceByKey requires, just like RDD.reduce, an associative AND commutative binary operator.\r\nThis wasn't stated in the docs.","created_at":"2016-02-05T10:27:01Z","updated_at":"2016-02-16T13:44:18Z","closed_at":"2016-02-16T13:44:18Z","merged_at":null,"merge_commit_sha":"9cd766758585c1fd3c66db11b3228fd291ab8ec5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/11091/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/11091/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/11091/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/b14f702ac8c3a5b018715b6763cfeda99000b292","head":{"label":"YPares:master","ref":"master","sha":"b14f702ac8c3a5b018715b6763cfeda99000b292","user":{"login":"YPares","id":1377233,"avatar_url":"https://avatars.githubusercontent.com/u/1377233?v=3","gravatar_id":"","url":"https://api.github.com/users/YPares","html_url":"https://github.com/YPares","followers_url":"https://api.github.com/users/YPares/followers","following_url":"https://api.github.com/users/YPares/following{/other_user}","gists_url":"https://api.github.com/users/YPares/gists{/gist_id}","starred_url":"https://api.github.com/users/YPares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YPares/subscriptions","organizations_url":"https://api.github.com/users/YPares/orgs","repos_url":"https://api.github.com/users/YPares/repos","events_url":"https://api.github.com/users/YPares/events{/privacy}","received_events_url":"https://api.github.com/users/YPares/received_events","type":"User","site_admin":false},"repo":{"id":51139854,"name":"spark","full_name":"YPares/spark","owner":{"login":"YPares","id":1377233,"avatar_url":"https://avatars.githubusercontent.com/u/1377233?v=3","gravatar_id":"","url":"https://api.github.com/users/YPares","html_url":"https://github.com/YPares","followers_url":"https://api.github.com/users/YPares/followers","following_url":"https://api.github.com/users/YPares/following{/other_user}","gists_url":"https://api.github.com/users/YPares/gists{/gist_id}","starred_url":"https://api.github.com/users/YPares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YPares/subscriptions","organizations_url":"https://api.github.com/users/YPares/orgs","repos_url":"https://api.github.com/users/YPares/repos","events_url":"https://api.github.com/users/YPares/events{/privacy}","received_events_url":"https://api.github.com/users/YPares/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YPares/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/YPares/spark","forks_url":"https://api.github.com/repos/YPares/spark/forks","keys_url":"https://api.github.com/repos/YPares/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YPares/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YPares/spark/teams","hooks_url":"https://api.github.com/repos/YPares/spark/hooks","issue_events_url":"https://api.github.com/repos/YPares/spark/issues/events{/number}","events_url":"https://api.github.com/repos/YPares/spark/events","assignees_url":"https://api.github.com/repos/YPares/spark/assignees{/user}","branches_url":"https://api.github.com/repos/YPares/spark/branches{/branch}","tags_url":"https://api.github.com/repos/YPares/spark/tags","blobs_url":"https://api.github.com/repos/YPares/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YPares/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YPares/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/YPares/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YPares/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/YPares/spark/languages","stargazers_url":"https://api.github.com/repos/YPares/spark/stargazers","contributors_url":"https://api.github.com/repos/YPares/spark/contributors","subscribers_url":"https://api.github.com/repos/YPares/spark/subscribers","subscription_url":"https://api.github.com/repos/YPares/spark/subscription","commits_url":"https://api.github.com/repos/YPares/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/YPares/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/YPares/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/YPares/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/YPares/spark/contents/{+path}","compare_url":"https://api.github.com/repos/YPares/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YPares/spark/merges","archive_url":"https://api.github.com/repos/YPares/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YPares/spark/downloads","issues_url":"https://api.github.com/repos/YPares/spark/issues{/number}","pulls_url":"https://api.github.com/repos/YPares/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/YPares/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/YPares/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YPares/spark/labels{/name}","releases_url":"https://api.github.com/repos/YPares/spark/releases{/id}","deployments_url":"https://api.github.com/repos/YPares/spark/deployments","created_at":"2016-02-05T10:20:18Z","updated_at":"2016-02-05T10:20:45Z","pushed_at":"2016-02-05T10:22:59Z","git_url":"git://github.com/YPares/spark.git","ssh_url":"git@github.com:YPares/spark.git","clone_url":"https://github.com/YPares/spark.git","svn_url":"https://github.com/YPares/spark","homepage":null,"size":146445,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"82d84ff2dd3efb3bda20b529f09a4022586fb722","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","deployments_url":"https://api.github.com/repos/apache/spark/deployments","created_at":"2014-02-25T08:00:08Z","updated_at":"2016-02-16T08:45:02Z","pushed_at":"2016-02-16T13:35:09Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":414066,"stargazers_count":7450,"watchers_count":7450,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6782,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":368,"forks":6782,"open_issues":368,"watchers":7450,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/11091"},"html":{"href":"https://github.com/apache/spark/pull/11091"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/11091"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/11091/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/11091/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/11091/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/b14f702ac8c3a5b018715b6763cfeda99000b292"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":9,"review_comments":1,"commits":1,"additions":1,"deletions":1,"changed_files":1}}