You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dilip Biswal (Jira)" <ji...@apache.org> on 2019/08/22 05:08:00 UTC

[jira] [Comment Edited] (SPARK-28819) Document CREATE OR REPLACE FUNCTION in SQL Reference

    [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org