diff options
author | Yin Huai <yhuai@databricks.com> | 2016-04-15 17:48:41 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-04-15 17:48:41 -0700 |
commit | b2dfa849599843269a43e6e0f2ab8c539dfc32b6 (patch) | |
tree | 7ab85d25e84b91529b5ef7aa310154a645027c56 /tools/src/main | |
parent | 4df65184b6b865a26e4d5c99bbfd3c24ab7179dc (diff) | |
download | spark-b2dfa849599843269a43e6e0f2ab8c539dfc32b6.tar.gz spark-b2dfa849599843269a43e6e0f2ab8c539dfc32b6.tar.bz2 spark-b2dfa849599843269a43e6e0f2ab8c539dfc32b6.zip |
[SPARK-14668][SQL] Move CurrentDatabase to Catalyst
## What changes were proposed in this pull request?
This PR moves `CurrentDatabase` from sql/hive package to sql/catalyst. 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
Author: Yin Huai <yhuai@databricks.com>
Closes #12424 from yhuai/SPARK-14668.
Diffstat (limited to 'tools/src/main')
0 files changed, 0 insertions, 0 deletions