{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/21200","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/21200/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/21200/comments","events_url":"https://api.github.com/repos/apache/spark/issues/21200/events","html_url":"https://github.com/apache/spark/pull/21200","id":319060378,"number":21200,"title":"[SPARK-24039][SS] Do continuous processing writes with multiple compute() calls","user":{"login":"jose-torres","id":30604243,"avatar_url":"https://avatars2.githubusercontent.com/u/30604243?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-torres","html_url":"https://github.com/jose-torres","followers_url":"https://api.github.com/users/jose-torres/followers","following_url":"https://api.github.com/users/jose-torres/following{/other_user}","gists_url":"https://api.github.com/users/jose-torres/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-torres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-torres/subscriptions","organizations_url":"https://api.github.com/users/jose-torres/orgs","repos_url":"https://api.github.com/users/jose-torres/repos","events_url":"https://api.github.com/users/jose-torres/events{/privacy}","received_events_url":"https://api.github.com/users/jose-torres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-04-30T22:41:33Z","updated_at":"2018-05-03T00:27:08Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/21200","html_url":"https://github.com/apache/spark/pull/21200","diff_url":"https://github.com/apache/spark/pull/21200.diff","patch_url":"https://github.com/apache/spark/pull/21200.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nDo continuous processing writes with multiple compute() calls.\r\n\r\nThe current strategy (before this PR) is hacky; we just call next() on an iterator which has already returned hasNext = false, knowing that all the nodes we whitelist handle this properly. This will have to be changed before we can support more complex query plans. (In particular, I have a WIP https://github.com/jose-torres/spark/pull/13 which should be able to support aggregates in a single partition with minimal additional work.)\r\n\r\nMost of the changes here are just refactoring to accommodate the new model. The behavioral changes are:\r\n\r\n* The writer now calls prev.compute(split, context) once per epoch within the epoch loop.\r\n* ContinuousDataSourceRDD now spawns a ContinuousQueuedDataReader which is shared across multiple calls to compute() for the same partition.\r\n\r\n## How was this patch tested?\r\n\r\nexisting unit tests"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/386161201","html_url":"https://github.com/apache/spark/pull/21200#issuecomment-386161201","issue_url":"https://api.github.com/repos/apache/spark/issues/21200","id":386161201,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","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":"2018-05-03T00:27:08Z","updated_at":"2018-05-03T00:27:08Z","author_association":"NONE","body":"**[Test build #90074 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90074/testReport)** for PR 21200 at commit [`35849cd`](https://github.com/apache/spark/commit/35849cd29e088f401861cc9d5d27c57a925d74c9).\n * This patch **fails SparkR unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}