{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13315","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13315/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13315/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13315/events","html_url":"https://github.com/apache/spark/pull/13315","id":156880748,"number":13315,"title":"[SPARK-15538][SPARK-15539][SQL] Truncate table fixes round 2","user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-26T00:44:44Z","updated_at":"2016-05-26T20:09:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13315","html_url":"https://github.com/apache/spark/pull/13315","diff_url":"https://github.com/apache/spark/pull/13315.diff","patch_url":"https://github.com/apache/spark/pull/13315.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nTwo more changes:\r\n(1) Fix truncate table for data source tables (only for cases without `PARTITION`)\r\n(2) Disallow truncating external tables or views\r\n\r\n## How was this patch tested?\r\n\r\n`DDLSuite`"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/221980355","html_url":"https://github.com/apache/spark/pull/13315#issuecomment-221980355","issue_url":"https://api.github.com/repos/apache/spark/issues/13315","id":221980355,"user":{"login":"sureshthalamati","id":13815184,"avatar_url":"https://avatars.githubusercontent.com/u/13815184?v=3","gravatar_id":"","url":"https://api.github.com/users/sureshthalamati","html_url":"https://github.com/sureshthalamati","followers_url":"https://api.github.com/users/sureshthalamati/followers","following_url":"https://api.github.com/users/sureshthalamati/following{/other_user}","gists_url":"https://api.github.com/users/sureshthalamati/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshthalamati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshthalamati/subscriptions","organizations_url":"https://api.github.com/users/sureshthalamati/orgs","repos_url":"https://api.github.com/users/sureshthalamati/repos","events_url":"https://api.github.com/users/sureshthalamati/events{/privacy}","received_events_url":"https://api.github.com/users/sureshthalamati/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T20:09:59Z","updated_at":"2016-05-26T20:09:59Z","body":"@andrewor14  After I cleaned up the old  metastore_db ,  truncate worked as expected.  Thanks"}}
{"actor":{"display_login":"sureshthalamati"}}