{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/14030","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/14030/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/14030/comments","events_url":"https://api.github.com/repos/apache/spark/issues/14030/events","html_url":"https://github.com/apache/spark/pull/14030","id":163527401,"number":14030,"title":"[SPARK-16350][SQL] Fix support for incremental planning in wirteStream.foreach()","user":{"login":"lw-lin","id":15843379,"avatar_url":"https://avatars.githubusercontent.com/u/15843379?v=3","gravatar_id":"","url":"https://api.github.com/users/lw-lin","html_url":"https://github.com/lw-lin","followers_url":"https://api.github.com/users/lw-lin/followers","following_url":"https://api.github.com/users/lw-lin/following{/other_user}","gists_url":"https://api.github.com/users/lw-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/lw-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lw-lin/subscriptions","organizations_url":"https://api.github.com/users/lw-lin/orgs","repos_url":"https://api.github.com/users/lw-lin/repos","events_url":"https://api.github.com/users/lw-lin/events{/privacy}","received_events_url":"https://api.github.com/users/lw-lin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-02T17:05:29Z","updated_at":"2016-07-03T04:18:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14030","html_url":"https://github.com/apache/spark/pull/14030","diff_url":"https://github.com/apache/spark/pull/14030.diff","patch_url":"https://github.com/apache/spark/pull/14030.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThere are cases where `complete` output mode does not output updated aggregated value; for details please refer to [SPARK-16350](https://issues.apache.org/jira/browse/SPARK-16350).\r\n\r\nThe cause is that, as we do `data.as[T].foreachPartition { iter => ... }` in `ForeachSink.addBatch()`, `foreachPartition()` does not support incremental planning for now.\r\n\r\nThis patches makes `foreachPartition()` support incremental planning in `ForeachSink`, by making a special version of `Dataset` with its `rdd()` method supporting incremental planning.\r\n\r\n## How was this patch tested?\r\n\r\nAdded a unit test which failed before the change"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/230134548","html_url":"https://github.com/apache/spark/pull/14030#issuecomment-230134548","issue_url":"https://api.github.com/repos/apache/spark/issues/14030","id":230134548,"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":"2016-07-03T04:18:30Z","updated_at":"2016-07-03T04:18:30Z","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}