GitHub user yhuai opened a pull request:
https://github.com/apache/spark/pull/12424
[SPARK-14668] [SQL] Move CurrentDatabase to sql/core
## What changes were proposed in this pull request?
This PR moves `CurrentDatabase` from sql/hive package to sql/core. It also
adds the function description, which looks like the following.
```
scala> sqlContext.sql("describe function extended
current_database").collect.foreach(println)
[Function: current_database]
[Class: org.apache.spark.sql.execution.command.CurrentDatabase]
[Usage: current_database() - Returns the current database.]
[Extended Usage:
> SELECT current_database()]
```
## How was this patch tested?
Existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yhuai/spark SPARK-14668
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12424.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12424
----
commit 7b01fd3045b3c226cbf7ac530b5773de5594f3e4
Author: Yin Huai <[email protected]>
Date: 2016-04-15T20:15:39Z
[SPARK-14668] [SQL] Move CurrentDatabase to sql/core
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]