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_r316962338
########## 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. + +### **IF EXISTS** + +If specified will not throw any exception if no function exists. Review comment: How about - "If specified, no exception is thrown when the function does not exist" ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org