spark-instrumented-optimizer/sql/hive
Liang-Chi Hsieh bc925b73a6 [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.
2016-03-26 20:09:01 -07:00
..
compatibility/src/test/scala/org/apache/spark/sql/hive/execution [SPARK-14137] [SPARK-14150] [SQL] Infer IsNotNull constraints from non-nullable attributes 2016-03-25 12:57:26 -07:00
src [SPARK-14157][SQL] Parse Drop Function DDL command 2016-03-26 20:09:01 -07:00
pom.xml [SPARK-11624][SPARK-11972][SQL] fix commands that need hive to exec 2016-02-22 18:13:32 -08:00