{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12081","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12081/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12081/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12081/events","html_url":"https://github.com/apache/spark/pull/12081","id":144808315,"number":12081,"title":"[SPARK-14124] [SQL] [FOLLOWUP] Implement Database-related DDL Commands ","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,"milestone":null,"comments":57,"created_at":"2016-03-31T06:58:53Z","updated_at":"2016-04-12T17:17:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12081","html_url":"https://github.com/apache/spark/pull/12081","diff_url":"https://github.com/apache/spark/pull/12081.diff","patch_url":"https://github.com/apache/spark/pull/12081.patch"},"body":"#### What changes were proposed in this pull request?\r\n\r\nFirst, this PR will issue an exception when location is not specified and `HiveConf.ConfVars.METASTOREWAREHOUSE` is blank.\r\n\r\nSecond, it replaces the scheme of a path with the scheme of the FileSystem that it maps to.\r\n\r\nThird, the property value of `java.io.tmpdir`. On some plateform, the temporary directory  do not include a trailing slash. For example, what I got in the web:\r\n```\r\nWin NT  --> C:\\TEMP\\\r\nWin XP  --> C:\\TEMP\r\nSolaris --> /var/tmp/\r\nLinux   --> /var/tmp\r\n```\r\n\r\nForth, a couple of test cases are added to verify if the commands work properly.\r\n\r\ncc @yhuai @andrewor14 Sorry, I did not catch this issue when submitting the PR. Could you review this follow-up?\r\n\r\n#### How was this patch tested?\r\nAdded a test case for it and correct the previous test cases.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/209013478","html_url":"https://github.com/apache/spark/pull/12081#issuecomment-209013478","issue_url":"https://api.github.com/repos/apache/spark/issues/12081","id":209013478,"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":"2016-04-12T17:17:36Z","updated_at":"2016-04-12T17:17:36Z","body":"**[Test build #55620 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55620/consoleFull)** for PR 12081 at commit [`3353a39`](https://github.com/apache/spark/commit/3353a390acb2db05aef39d6ea20e96521b263d6e)."}}