{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/14729","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/14729/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/14729/comments","events_url":"https://api.github.com/repos/apache/spark/issues/14729/events","html_url":"https://github.com/apache/spark/pull/14729","id":172257869,"number":14729,"title":"[SPARK-17167] [SQL] Issue Exceptions when Analyze Table on In-Memory Cataloged Tables","user":{"login":"gatorsmile","id":11567269,"avatar_url":"https://avatars.githubusercontent.com/u/11567269?v=3","gravatar_id":"","url":"https://api.github.com/users/gatorsmile","html_url":"https://github.com/gatorsmile","followers_url":"https://api.github.com/users/gatorsmile/followers","following_url":"https://api.github.com/users/gatorsmile/following{/other_user}","gists_url":"https://api.github.com/users/gatorsmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gatorsmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatorsmile/subscriptions","organizations_url":"https://api.github.com/users/gatorsmile/orgs","repos_url":"https://api.github.com/users/gatorsmile/repos","events_url":"https://api.github.com/users/gatorsmile/events{/privacy}","received_events_url":"https://api.github.com/users/gatorsmile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-20T07:01:45Z","updated_at":"2016-08-22T21:32:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14729","html_url":"https://github.com/apache/spark/pull/14729","diff_url":"https://github.com/apache/spark/pull/14729.diff","patch_url":"https://github.com/apache/spark/pull/14729.patch"},"body":"### What changes were proposed in this pull request?\r\nCurrently, `Analyze Table` is only used for Hive-serde tables. We should issue exceptions in all the other cases. When the tables are data source tables, we issued an exception. However, when tables are In-Memory Cataloged tables, we do not issue any exception.\r\n\r\nThis PR is to issue an exception when the tables are in-memory cataloged. For example,  \r\n```SQL\r\nCREATE TABLE tbl(a INT, b INT) USING parquet\r\n```\r\n`tbl` is a `SimpleCatalogRelation` when the hive support is not enabled.\r\n\r\n### How was this patch tested?\r\nAdded two test cases. One of them is just to improve the test coverage when the analyzed table is data source tables."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/241557809","html_url":"https://github.com/apache/spark/pull/14729#issuecomment-241557809","issue_url":"https://api.github.com/repos/apache/spark/issues/14729","id":241557809,"user":{"login":"gatorsmile","id":11567269,"avatar_url":"https://avatars.githubusercontent.com/u/11567269?v=3","gravatar_id":"","url":"https://api.github.com/users/gatorsmile","html_url":"https://github.com/gatorsmile","followers_url":"https://api.github.com/users/gatorsmile/followers","following_url":"https://api.github.com/users/gatorsmile/following{/other_user}","gists_url":"https://api.github.com/users/gatorsmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gatorsmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatorsmile/subscriptions","organizations_url":"https://api.github.com/users/gatorsmile/orgs","repos_url":"https://api.github.com/users/gatorsmile/repos","events_url":"https://api.github.com/users/gatorsmile/events{/privacy}","received_events_url":"https://api.github.com/users/gatorsmile/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T21:32:56Z","updated_at":"2016-08-22T21:32:56Z","body":"@hvanhovell Will submit a PR for Spark 2.0."}}
{"actor":{"display_login":"gatorsmile"}}