{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22952","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22952/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22952/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22952/events","html_url":"https://github.com/apache/spark/pull/22952","id":377606925,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NTEwNDM2","number":22952,"title":"[SPARK-20568][SS] Provide option to clean up completed files in streaming query","user":{"login":"HeartSaVioR","id":1317309,"node_id":"MDQ6VXNlcjEzMTczMDk=","avatar_url":"https://avatars2.githubusercontent.com/u/1317309?v=4","gravatar_id":"","url":"https://api.github.com/users/HeartSaVioR","html_url":"https://github.com/HeartSaVioR","followers_url":"https://api.github.com/users/HeartSaVioR/followers","following_url":"https://api.github.com/users/HeartSaVioR/following{/other_user}","gists_url":"https://api.github.com/users/HeartSaVioR/gists{/gist_id}","starred_url":"https://api.github.com/users/HeartSaVioR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeartSaVioR/subscriptions","organizations_url":"https://api.github.com/users/HeartSaVioR/orgs","repos_url":"https://api.github.com/users/HeartSaVioR/repos","events_url":"https://api.github.com/users/HeartSaVioR/events{/privacy}","received_events_url":"https://api.github.com/users/HeartSaVioR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":47,"created_at":"2018-11-05T22:18:29Z","updated_at":"2018-12-12T17:20:58Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22952","html_url":"https://github.com/apache/spark/pull/22952","diff_url":"https://github.com/apache/spark/pull/22952.diff","patch_url":"https://github.com/apache/spark/pull/22952.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis patch adds the option to clean up files which are completed in previous batch.\r\n\r\n`cleanSource` -> \"archive\" / \"delete\" / \"no_op\"\r\n\r\nThe default value is \"no_op\", which Spark will do nothing.\r\n\r\nIf \"delete\" is specified, Spark will simply delete input files. If \"archive\" is specified, Spark will require additional config `sourceArchiveDir` which will be used to move input files to there. When archiving (via move) the path of input files are retained to the archived paths as sub-path.\r\n\r\nNote that it is only applied to \"micro-batch\", since for batch all input files must be kept to get same result across multiple query executions.\r\n\r\n## How was this patch tested?\r\n\r\nAdded UT. Manual test against local disk as well as HDFS."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/446669988","html_url":"https://github.com/apache/spark/pull/22952#issuecomment-446669988","issue_url":"https://api.github.com/repos/apache/spark/issues/22952","id":446669988,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjY2OTk4OA==","user":{"login":"SparkQA","id":8108735,"node_id":"MDQ6VXNlcjgxMDg3MzU=","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-12-12T17:20:58Z","updated_at":"2018-12-12T17:20:58Z","author_association":"NONE","body":"**[Test build #100024 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/100024/testReport)** for PR 22952 at commit [`1f7645f`](https://github.com/apache/spark/commit/1f7645f6f6596b36c903016a13dc9efaedd849a7).\n * This patch **fails SparkR unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}