diff options
author | Liang-Chi Hsieh <simonh@tw.ibm.com> | 2016-03-26 20:09:01 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-03-26 20:09:01 -0700 |
commit | bc925b73a65ad57a636e6e6cb5648e4aed027af5 (patch) | |
tree | e3a930894695d3c08c2895371d8238210324b461 /sql/hive/src | |
parent | b547de8a60074ca25c5bec3a24511f8042bdf0ad (diff) | |
download | spark-bc925b73a65ad57a636e6e6cb5648e4aed027af5.tar.gz spark-bc925b73a65ad57a636e6e6cb5648e4aed027af5.tar.bz2 spark-bc925b73a65ad57a636e6e6cb5648e4aed027af5.zip |
[SPARK-14157][SQL] Parse Drop Function DDL command
## What changes were proposed in this pull request?
JIRA: https://issues.apache.org/jira/browse/SPARK-14157
We only parse create function command. In order to support native drop function command, we need to parse it too.
From Hive [manual](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/ReloadFunction), the drop function command has syntax as:
DROP [TEMPORARY] FUNCTION [IF EXISTS] function_name;
## How was this patch tested?
Added test into `DDLCommandSuite`.
Author: Liang-Chi Hsieh <simonh@tw.ibm.com>
Closes #11959 from viirya/parse-drop-func.
Diffstat (limited to 'sql/hive/src')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala index 6586b90377..61fe0985c1 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala @@ -102,7 +102,6 @@ private[hive] class HiveQl(conf: ParserConf) extends SparkQl(conf) with Logging "TOK_DESCDATABASE", - "TOK_DROPFUNCTION", "TOK_DROPINDEX", "TOK_DROPMACRO", "TOK_DROPROLE", |