{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12493","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12493/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12493/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12493/events","html_url":"https://github.com/apache/spark/pull/12493","id":149373460,"number":12493,"title":"[SPARK-12919][SPARKR] Implement dapply() on DataFrame in SparkR.","user":{"login":"sun-rui","id":2528327,"avatar_url":"https://avatars.githubusercontent.com/u/2528327?v=3","gravatar_id":"","url":"https://api.github.com/users/sun-rui","html_url":"https://github.com/sun-rui","followers_url":"https://api.github.com/users/sun-rui/followers","following_url":"https://api.github.com/users/sun-rui/following{/other_user}","gists_url":"https://api.github.com/users/sun-rui/gists{/gist_id}","starred_url":"https://api.github.com/users/sun-rui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sun-rui/subscriptions","organizations_url":"https://api.github.com/users/sun-rui/orgs","repos_url":"https://api.github.com/users/sun-rui/repos","events_url":"https://api.github.com/users/sun-rui/events{/privacy}","received_events_url":"https://api.github.com/users/sun-rui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-04-19T07:32:36Z","updated_at":"2016-04-22T07:32:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12493","html_url":"https://github.com/apache/spark/pull/12493","diff_url":"https://github.com/apache/spark/pull/12493.diff","patch_url":"https://github.com/apache/spark/pull/12493.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\ndapply() applies an R function on each partition of a DataFrame and returns a new DataFrame.\r\n\r\nThe function signature is:\r\n\r\n\tdapply(df, function(localDF) {}, schema = NULL)\r\n\r\nR function input: local data.frame from the partition on local node\r\nR function output: local data.frame\r\n\r\nSchema specifies the Row format of the resulting DataFrame. It must match the R function's output.\r\nIf schema is not specified, each partition of the result DataFrame will be serialized in R into a single byte array. Such resulting DataFrame can be processed by successive calls to dapply().\r\n\r\n## How was this patch tested?\r\nSparkR unit tests.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/213302236","html_url":"https://github.com/apache/spark/pull/12493#issuecomment-213302236","issue_url":"https://api.github.com/repos/apache/spark/issues/12493","id":213302236,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T07:32:34Z","updated_at":"2016-04-22T07:32:34Z","body":"**[Test build #56674 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56674/consoleFull)** for PR 12493 at commit [`76a6fd7`](https://github.com/apache/spark/commit/76a6fd7caedc1a3574db2d112fe8a741353264e7)."}}