{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15896","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15896/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15896/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15896/events","html_url":"https://github.com/apache/spark/pull/15896","id":189563970,"number":15896,"title":"[SPARK-18465] Uncache table shouldn't throw an exception when table doesn't exist","user":{"login":"brkyvz","id":5243515,"avatar_url":"https://avatars.githubusercontent.com/u/5243515?v=3","gravatar_id":"","url":"https://api.github.com/users/brkyvz","html_url":"https://github.com/brkyvz","followers_url":"https://api.github.com/users/brkyvz/followers","following_url":"https://api.github.com/users/brkyvz/following{/other_user}","gists_url":"https://api.github.com/users/brkyvz/gists{/gist_id}","starred_url":"https://api.github.com/users/brkyvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkyvz/subscriptions","organizations_url":"https://api.github.com/users/brkyvz/orgs","repos_url":"https://api.github.com/users/brkyvz/repos","events_url":"https://api.github.com/users/brkyvz/events{/privacy}","received_events_url":"https://api.github.com/users/brkyvz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-16T02:16:17Z","updated_at":"2016-11-16T02:19:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15896","html_url":"https://github.com/apache/spark/pull/15896","diff_url":"https://github.com/apache/spark/pull/15896.diff","patch_url":"https://github.com/apache/spark/pull/15896.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nWhile this behavior is debatable, consider the following use case:\r\n```sql\r\nUNCACHE TABLE foo;\r\nCACHE TABLE foo AS \r\nSELECT * FROM bar\r\n```\r\nThe command above fails the first time you run it. But I want to run the command above over and over again, and I don't want to change my code just for the first run of it.\r\nThe issue is that subsequent `CACHE TABLE` commands do not overwrite the existing table.\r\nThere are alternate solutions, e.g.\r\n1. `UNCACHE TABLE IF EXISTS foo`\r\n2. `CACHE AND REPLACE TABLE foo`\r\nWhich will require additional work with the parser.\r\n\r\nI'm open to suggestions.\r\n\r\n## How was this patch tested?\r\n\r\nUnit tests"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/260834346","html_url":"https://github.com/apache/spark/pull/15896#issuecomment-260834346","issue_url":"https://api.github.com/repos/apache/spark/issues/15896","id":260834346,"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-11-16T02:19:27Z","updated_at":"2016-11-16T02:19:27Z","body":"Merged build finished. Test FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}