You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiaochen Ouyang (JIRA)" <ji...@apache.org> on 2017/07/06 01:04:00 UTC

[jira] [Updated] (SPARK-20383) SparkSQL unsupports to create function with the key word 'OR REPLACE' and 'IF NOT EXISTS'

     [ https://issues.apache.org/jira/browse/SPARK-20383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiaochen Ouyang updated SPARK-20383:
------------------------------------
    Summary: SparkSQL unsupports to create function with the key word 'OR REPLACE' and 'IF NOT EXISTS'  (was: SparkSQL unsupports to create function with key word 'if not exists')

> SparkSQL unsupports to create function with the key word 'OR REPLACE' and 'IF NOT EXISTS'
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-20383
>                 URL: https://issues.apache.org/jira/browse/SPARK-20383
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0, 2.0.2, 2.1.0
>         Environment: spark2.1.0
>            Reporter: Xiaochen Ouyang
>            Assignee: Xiaochen Ouyang
>             Fix For: 2.3.0
>
>
> unsupport to create a temporary|permanent function with the key word 'IF NOT EXISTS'.
> I think it is necessary to support this key word in 'create [temporary] fucntion ...' clause,
> For example:
> I hava an application which has three steps as follow :
> 1. insert into table t1 as select id from t where ...
> 2. create function AA as ... using jar ...
> 3. insert into table t2 select AA(id) from t1 
> my application run succussfully first time and it will throw an exeception at step 2 when it run again. So, I think it is reasonable and friendly to user application.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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