{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8324","labels_url":"https://api.github.com/repos/apache/spark/issues/8324/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8324/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8324/events","html_url":"https://github.com/apache/spark/pull/8324","id":102027212,"number":8324,"title":"[SPARK-10092] [SQL] Multi-DB support follow up.","user":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T00:07:20Z","updated_at":"2015-08-20T05:09:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8324","html_url":"https://github.com/apache/spark/pull/8324","diff_url":"https://github.com/apache/spark/pull/8324.diff","patch_url":"https://github.com/apache/spark/pull/8324.patch"},"body":"https://issues.apache.org/jira/browse/SPARK-10092\r\n\r\nThis pr is a follow-up one for Multi-DB support. It has the following changes:\r\n\r\n* `HiveContext.refreshTable` now accepts `dbName.tableName`.\r\n* `HiveContext.analyze` now accepts `dbName.tableName`.\r\n* `CreateTableUsing`, `CreateTableUsingAsSelect`, `CreateTempTableUsing`, `CreateTempTableUsingAsSelect`, `CreateMetastoreDataSource`, and `CreateMetastoreDataSourceAsSelect` all take `TableIdentifier` instead of the string representation of table name.\r\n* When you call `saveAsTable` with a specified database, the data will be saved to the correct location.\r\n* Explicitly do not allow users to create a temporary with a specified database name (users cannot do it before).\r\n* When we save table to metastore, we also check if db name and table name can be accepted by hive (using `MetaStoreUtils.validateName`)."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/132894003","html_url":"https://github.com/apache/spark/pull/8324#issuecomment-132894003","issue_url":"https://api.github.com/repos/apache/spark/issues/8324","id":132894003,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","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":"2015-08-20T05:09:54Z","updated_at":"2015-08-20T05:09:54Z","body":"  [Test build #41299 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41299/console) for   PR 8324 at commit [`9cbeb53`](https://github.com/apache/spark/commit/9cbeb53c0662553b9eef045ca1cef97b32cf8fd7).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}