[ 
https://issues.apache.org/jira/browse/SPARK-28819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912976#comment-16912976
 ] 

Dilip Biswal edited comment on SPARK-28819 at 8/22/19 5:07 AM:
---------------------------------------------------------------

[~abhishek.akg]

Hmmn... There is one rule in our grammar file for CREATE FUNCTION ..
{code:java}
CREATE (OR REPLACE)? TEMPORARY? FUNCTION (IF NOT EXISTS)?
 qualifiedName AS className=STRING
 (USING resource (',' resource)*)? #createFunction
{code}
So not sure why we should separate this in the doc. My guess is when the 
databricks docs were
 written .. REPLACE option was not there.. and it has not been updated to 
reflect this addition. The

reason i say that it should be covered together is because there is a lot of 
boilerplate stuff that will

need to be duplicated.

cc [~smilegator] for his input.


was (Author: dkbiswal):
[~abhishek.akg]

Hmmn... There is one rule in our grammar file for CREATE FUNCTION ..
{code:java}
CREATE (OR REPLACE)? TEMPORARY? FUNCTION (IF NOT EXISTS)?
 qualifiedName AS className=STRING
 (USING resource (',' resource)*)? #createFunction
{code}
So not sure why we should separate in the doc. My guess is when the databricks 
docs were
 written .. REPLACE option was not there.. and it has not been updated to 
reflect this addition. The

reason i say that it should be covered together is because there is a lot of 
boilerplate stuff that will

need to be duplicated.

cc [~smilegator] for his input.

> Document CREATE OR REPLACE FUNCTION in SQL Reference
> ----------------------------------------------------
>
>                 Key: SPARK-28819
>                 URL: https://issues.apache.org/jira/browse/SPARK-28819
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Documentation
>    Affects Versions: 2.4.3
>            Reporter: ABHISHEK KUMAR GUPTA
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to