{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15399","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15399/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15399/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15399/events","html_url":"https://github.com/apache/spark/pull/15399","id":181795123,"number":15399,"title":"[SPARK-17819][SQL] Support default database in connection URIs for Spark Thrift Server","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-08T01:14:22Z","updated_at":"2016-10-10T16:55:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15399","html_url":"https://github.com/apache/spark/pull/15399","diff_url":"https://github.com/apache/spark/pull/15399.diff","patch_url":"https://github.com/apache/spark/pull/15399.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nCurrently, Spark Thrift Server ignores the default database in URI. This PR supports that like the following.\r\n\r\n```sql\r\n$ bin/beeline -u jdbc:hive2://localhost:10000 -e \"create database testdb\"\r\n$ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e \"create table t(a int)\"\r\n$ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e \"show tables\"\r\n...\r\n+------------+--------------+--+\r\n| tableName  | isTemporary  |\r\n+------------+--------------+--+\r\n| t          | false        |\r\n+------------+--------------+--+\r\n1 row selected (0.347 seconds)\r\n$ bin/beeline -u jdbc:hive2://localhost:10000 -e \"show tables\"\r\n...\r\n+------------+--------------+--+\r\n| tableName  | isTemporary  |\r\n+------------+--------------+--+\r\n+------------+--------------+--+\r\nNo rows selected (0.098 seconds)\r\n```\r\n\r\n## How was this patch tested?\r\n\r\nManual.\r\n\r\nNote: I tried to add a test case for this, but I cannot found a suitable testsuite for this. I'll add the testcase if some advice is given."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/252678126","html_url":"https://github.com/apache/spark/pull/15399#issuecomment-252678126","issue_url":"https://api.github.com/repos/apache/spark/issues/15399","id":252678126,"user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T16:55:20Z","updated_at":"2016-10-10T16:55:20Z","body":"Thank you for commenting, @gatorsmile . So far, I asked @rxin and you. I'll find another committer more closer this part."}}
{"actor":{"display_login":"dongjoon-hyun"}}