{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/1306","labels_url":"https://api.github.com/repos/apache/spark/issues/1306/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/1306/comments","events_url":"https://api.github.com/repos/apache/spark/issues/1306/events","html_url":"https://github.com/apache/spark/pull/1306","id":37194318,"number":1306,"title":"[SPARK-2373]RDD add span function (split an RDD to two RDD based on user's function)]","user":{"login":"YanjieGao","id":5576848,"avatar_url":"https://avatars.githubusercontent.com/u/5576848?v=3","gravatar_id":"","url":"https://api.github.com/users/YanjieGao","html_url":"https://github.com/YanjieGao","followers_url":"https://api.github.com/users/YanjieGao/followers","following_url":"https://api.github.com/users/YanjieGao/following{/other_user}","gists_url":"https://api.github.com/users/YanjieGao/gists{/gist_id}","starred_url":"https://api.github.com/users/YanjieGao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YanjieGao/subscriptions","organizations_url":"https://api.github.com/users/YanjieGao/orgs","repos_url":"https://api.github.com/users/YanjieGao/repos","events_url":"https://api.github.com/users/YanjieGao/events{/privacy}","received_events_url":"https://api.github.com/users/YanjieGao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-07-05T07:51:25Z","updated_at":"2015-10-05T13:44:40Z","closed_at":"2014-08-29T11:11:34Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/1306","html_url":"https://github.com/apache/spark/pull/1306","diff_url":"https://github.com/apache/spark/pull/1306.diff","patch_url":"https://github.com/apache/spark/pull/1306.patch"},"body":"Hi all,\r\nThis function is a basic function in Scala.\r\ndef span(p: T => Boolean): (RDD[T], RDD[T]) \r\nSplits this RDD into a prefix/suffix pair according to a predicate .\r\nreturns\r\na pair consisting of the longest prefix of this RDD whose elements all satisfy p, and the rest of this list.\r\n\r\nJIRA:https://issues.apache.org/jira/browse/SPARK-2373"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/145531643","html_url":"https://github.com/apache/spark/pull/1306#issuecomment-145531643","issue_url":"https://api.github.com/repos/apache/spark/issues/1306","id":145531643,"user":{"login":"crakjie","id":6709653,"avatar_url":"https://avatars.githubusercontent.com/u/6709653?v=3","gravatar_id":"","url":"https://api.github.com/users/crakjie","html_url":"https://github.com/crakjie","followers_url":"https://api.github.com/users/crakjie/followers","following_url":"https://api.github.com/users/crakjie/following{/other_user}","gists_url":"https://api.github.com/users/crakjie/gists{/gist_id}","starred_url":"https://api.github.com/users/crakjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crakjie/subscriptions","organizations_url":"https://api.github.com/users/crakjie/orgs","repos_url":"https://api.github.com/users/crakjie/repos","events_url":"https://api.github.com/users/crakjie/events{/privacy}","received_events_url":"https://api.github.com/users/crakjie/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T13:44:40Z","updated_at":"2015-10-05T13:44:40Z","body":"It's a nice start to code the scala `def\r\npartition(p: (A) ⇒ Boolean): (List[A], List[A])` thanks"}}