{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/69986245","id":69986245,"diff_hunk":"@@ -65,6 +65,46 @@ class KeyValueGroupedDataset[K, V] private[sql](\n       groupingAttributes)\n \n   /**\n+   * Returns a new [[KeyValueGroupedDataset]] where the given function has been applied to the\n+   * data. The grouping key is unchanged by this.\n+   *\n+   * {{{\n+   *   // Create values grouped by key from a Dataset[(K, V)]\n+   *   ds.groupByKey(_._1).mapValues(_._2) // Scala\n+   * }}}\n+   * @since 2.0.0\n+   */\n+  def mapValues[W: Encoder](func: V => W): KeyValueGroupedDataset[K, W] = {","path":"sql/core/src/main/scala/org/apache/spark/sql/KeyValueGroupedDataset.scala","position":13,"original_position":13,"commit_id":"52b19c12f2bef06ecb7f79b1005a436fd5b45e2d","original_commit_id":"52b19c12f2bef06ecb7f79b1005a436fd5b45e2d","user":{"login":"jaceklaskowski","id":62313,"avatar_url":"https://avatars.githubusercontent.com/u/62313?v=3","gravatar_id":"","url":"https://api.github.com/users/jaceklaskowski","html_url":"https://github.com/jaceklaskowski","followers_url":"https://api.github.com/users/jaceklaskowski/followers","following_url":"https://api.github.com/users/jaceklaskowski/following{/other_user}","gists_url":"https://api.github.com/users/jaceklaskowski/gists{/gist_id}","starred_url":"https://api.github.com/users/jaceklaskowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaceklaskowski/subscriptions","organizations_url":"https://api.github.com/users/jaceklaskowski/orgs","repos_url":"https://api.github.com/users/jaceklaskowski/repos","events_url":"https://api.github.com/users/jaceklaskowski/events{/privacy}","received_events_url":"https://api.github.com/users/jaceklaskowski/received_events","type":"User","site_admin":false},"body":"...while here `W: Encoder` only after `:`. Why is this inconsistency?","created_at":"2016-07-07T21:00:56Z","updated_at":"2016-07-07T21:00:56Z","html_url":"https://github.com/apache/spark/pull/13526#discussion_r69986245","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/13526","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/69986245"},"html":{"href":"https://github.com/apache/spark/pull/13526#discussion_r69986245"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/13526"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13526","id":72736543,"html_url":"https://github.com/apache/spark/pull/13526","diff_url":"https://github.com/apache/spark/pull/13526.diff","patch_url":"https://github.com/apache/spark/pull/13526.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/13526","number":13526,"state":"open","locked":false,"title":"[SPARK-15780][SQL] Support mapValues on KeyValueGroupedDataset","user":{"login":"koertkuipers","id":821284,"avatar_url":"https://avatars.githubusercontent.com/u/821284?v=3","gravatar_id":"","url":"https://api.github.com/users/koertkuipers","html_url":"https://github.com/koertkuipers","followers_url":"https://api.github.com/users/koertkuipers/followers","following_url":"https://api.github.com/users/koertkuipers/following{/other_user}","gists_url":"https://api.github.com/users/koertkuipers/gists{/gist_id}","starred_url":"https://api.github.com/users/koertkuipers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koertkuipers/subscriptions","organizations_url":"https://api.github.com/users/koertkuipers/orgs","repos_url":"https://api.github.com/users/koertkuipers/repos","events_url":"https://api.github.com/users/koertkuipers/events{/privacy}","received_events_url":"https://api.github.com/users/koertkuipers/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\nAdd mapValues to KeyValueGroupedDataset\r\n\r\n## How was this patch tested?\r\n\r\nNew test in DatasetSuite for groupBy function, mapValues, flatMap\r\n","created_at":"2016-06-06T16:14:55Z","updated_at":"2016-07-07T21:00:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f738ef595d6df273f2edd24768cf1f48f3cb2daa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/13526/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/13526/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/13526/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/52b19c12f2bef06ecb7f79b1005a436fd5b45e2d","head":{"label":"tresata:feat-keyvaluegroupeddataset-mapvalues","ref":"feat-keyvaluegroupeddataset-mapvalues","sha":"52b19c12f2bef06ecb7f79b1005a436fd5b45e2d","user":{"login":"tresata","id":823379,"avatar_url":"https://avatars.githubusercontent.com/u/823379?v=3","gravatar_id":"","url":"https://api.github.com/users/tresata","html_url":"https://github.com/tresata","followers_url":"https://api.github.com/users/tresata/followers","following_url":"https://api.github.com/users/tresata/following{/other_user}","gists_url":"https://api.github.com/users/tresata/gists{/gist_id}","starred_url":"https://api.github.com/users/tresata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresata/subscriptions","organizations_url":"https://api.github.com/users/tresata/orgs","repos_url":"https://api.github.com/users/tresata/repos","events_url":"https://api.github.com/users/tresata/events{/privacy}","received_events_url":"https://api.github.com/users/tresata/received_events","type":"Organization","site_admin":false},"repo":{"id":17230199,"name":"spark","full_name":"tresata/spark","owner":{"login":"tresata","id":823379,"avatar_url":"https://avatars.githubusercontent.com/u/823379?v=3","gravatar_id":"","url":"https://api.github.com/users/tresata","html_url":"https://github.com/tresata","followers_url":"https://api.github.com/users/tresata/followers","following_url":"https://api.github.com/users/tresata/following{/other_user}","gists_url":"https://api.github.com/users/tresata/gists{/gist_id}","starred_url":"https://api.github.com/users/tresata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresata/subscriptions","organizations_url":"https://api.github.com/users/tresata/orgs","repos_url":"https://api.github.com/users/tresata/repos","events_url":"https://api.github.com/users/tresata/events{/privacy}","received_events_url":"https://api.github.com/users/tresata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tresata/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/tresata/spark","forks_url":"https://api.github.com/repos/tresata/spark/forks","keys_url":"https://api.github.com/repos/tresata/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tresata/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tresata/spark/teams","hooks_url":"https://api.github.com/repos/tresata/spark/hooks","issue_events_url":"https://api.github.com/repos/tresata/spark/issues/events{/number}","events_url":"https://api.github.com/repos/tresata/spark/events","assignees_url":"https://api.github.com/repos/tresata/spark/assignees{/user}","branches_url":"https://api.github.com/repos/tresata/spark/branches{/branch}","tags_url":"https://api.github.com/repos/tresata/spark/tags","blobs_url":"https://api.github.com/repos/tresata/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tresata/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tresata/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/tresata/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tresata/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/tresata/spark/languages","stargazers_url":"https://api.github.com/repos/tresata/spark/stargazers","contributors_url":"https://api.github.com/repos/tresata/spark/contributors","subscribers_url":"https://api.github.com/repos/tresata/spark/subscribers","subscription_url":"https://api.github.com/repos/tresata/spark/subscription","commits_url":"https://api.github.com/repos/tresata/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/tresata/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/tresata/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/tresata/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/tresata/spark/contents/{+path}","compare_url":"https://api.github.com/repos/tresata/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tresata/spark/merges","archive_url":"https://api.github.com/repos/tresata/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tresata/spark/downloads","issues_url":"https://api.github.com/repos/tresata/spark/issues{/number}","pulls_url":"https://api.github.com/repos/tresata/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/tresata/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/tresata/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tresata/spark/labels{/name}","releases_url":"https://api.github.com/repos/tresata/spark/releases{/id}","deployments_url":"https://api.github.com/repos/tresata/spark/deployments","created_at":"2014-02-26T23:54:41Z","updated_at":"2014-12-05T23:36:29Z","pushed_at":"2016-07-03T21:07:38Z","git_url":"git://github.com/tresata/spark.git","ssh_url":"git@github.com:tresata/spark.git","clone_url":"https://github.com/tresata/spark.git","svn_url":"https://github.com/tresata/spark","homepage":null,"size":169684,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"00ad4f054cd044e17d29b7c2c62efd8616462619","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-07-07T20:14:57Z","pushed_at":"2016-07-07T20:52:29Z","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":508461,"stargazers_count":9227,"watchers_count":9227,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8547,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":409,"forks":8547,"open_issues":409,"watchers":9227,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/13526"},"html":{"href":"https://github.com/apache/spark/pull/13526"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/13526"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/13526/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/13526/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/13526/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/52b19c12f2bef06ecb7f79b1005a436fd5b45e2d"}}}}
{"actor":{"display_login":"jaceklaskowski"}}