dilipbiswal commented on a change in pull request #25553: [SPARK-28797][DOC]
Document DROP FUNCTION statement in SQL Reference.
URL: https://github.com/apache/spark/pull/25553#discussion_r316960893
##########
File path: docs/sql-ref-syntax-ddl-drop-function.md
##########
@@ -19,4 +19,31 @@ license: |
limitations under the License.
---
-**This page is under construction**
+### Description
+Dropping a user-defined function(UDF). An exception will be thrown if the
function does not exist
+ in the system.
+
+### Syntax
+{% highlight sql %}
+DROP [TEMPORARY] FUNCTION [IF EXISTS] [db_name.]function_name;
+{% endhighlight %}
+
+### Example
+{% highlight sql %}
+DROP TEMPORARY FUNCTION tempfunction;
+DROP FUNCTION testdb.permfunction;
+{% endhighlight %}
+
+### Parameters
+
+### **function_name**
+
+The name of an existing function.
+
+### **TEMPORARY**
+
+If specified, the function created will be local to session. On close of
session it will be removed.
Review comment:
This does not sound right. We are talking about create in a drop action ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]