{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15506","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15506/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15506/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15506/events","html_url":"https://github.com/apache/spark/pull/15506","id":183289379,"number":15506,"title":"[MINOR][SQL] Add prettyName for current_database function","user":{"login":"weiqingy","id":8546874,"avatar_url":"https://avatars.githubusercontent.com/u/8546874?v=3","gravatar_id":"","url":"https://api.github.com/users/weiqingy","html_url":"https://github.com/weiqingy","followers_url":"https://api.github.com/users/weiqingy/followers","following_url":"https://api.github.com/users/weiqingy/following{/other_user}","gists_url":"https://api.github.com/users/weiqingy/gists{/gist_id}","starred_url":"https://api.github.com/users/weiqingy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiqingy/subscriptions","organizations_url":"https://api.github.com/users/weiqingy/orgs","repos_url":"https://api.github.com/users/weiqingy/repos","events_url":"https://api.github.com/users/weiqingy/events{/privacy}","received_events_url":"https://api.github.com/users/weiqingy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-16T20:26:35Z","updated_at":"2016-10-17T05:37:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15506","html_url":"https://github.com/apache/spark/pull/15506","diff_url":"https://github.com/apache/spark/pull/15506.diff","patch_url":"https://github.com/apache/spark/pull/15506.patch"},"body":"## What changes were proposed in this pull request?\r\nAdded a `prettyname` for current_database function.\r\n\r\n## How was this patch tested?\r\nManually.\r\n\r\nBefore:\r\n```\r\nscala> sql(\"select current_database()\").show\r\n+-----------------+\r\n|currentdatabase()|\r\n+-----------------+\r\n|          default|\r\n+-----------------+\r\n```\r\n\r\nAfter:\r\n```\r\nscala> sql(\"select current_database()\").show\r\n+------------------+\r\n|current_database()|\r\n+------------------+\r\n|           default|\r\n+------------------+\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/254116669","html_url":"https://github.com/apache/spark/pull/15506#issuecomment-254116669","issue_url":"https://api.github.com/repos/apache/spark/issues/15506","id":254116669,"user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T05:37:24Z","updated_at":"2016-10-17T05:37:24Z","body":"Thanks - merging in master/branch-2.0.\r\n"}}
{"actor":{"display_login":"rxin"}}