{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12424","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12424/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12424/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12424/events","html_url":"https://github.com/apache/spark/pull/12424","id":148758250,"number":12424,"title":"[SPARK-14668] [SQL] Move CurrentDatabase to sql/core","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":2,"created_at":"2016-04-15T20:18:28Z","updated_at":"2016-04-15T20:27:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12424","html_url":"https://github.com/apache/spark/pull/12424","diff_url":"https://github.com/apache/spark/pull/12424.diff","patch_url":"https://github.com/apache/spark/pull/12424.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis PR moves `CurrentDatabase` from sql/hive package to sql/core. It also adds the function description, which looks like the following.\r\n\r\n```\r\nscala> sqlContext.sql(\"describe function extended current_database\").collect.foreach(println)\r\n[Function: current_database]\r\n[Class: org.apache.spark.sql.execution.command.CurrentDatabase]\r\n[Usage: current_database() - Returns the current database.]\r\n[Extended Usage:\r\n> SELECT current_database()]\r\n```\r\n\r\n## How was this patch tested?\r\nExisting tests\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/210631358","html_url":"https://github.com/apache/spark/pull/12424#issuecomment-210631358","issue_url":"https://api.github.com/repos/apache/spark/issues/12424","id":210631358,"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-15T20:27:39Z","updated_at":"2016-04-15T20:27:39Z","body":"**[Test build #55955 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55955/consoleFull)** for PR 12424 at commit [`6387829`](https://github.com/apache/spark/commit/63878296d295763b401acfb0f63534148a38632f)."}}