Github user ouyangxiaochen commented on the issue:

    https://github.com/apache/spark/pull/17681
  
    The new synax of creating function like this `CREATE (OR REPLACE)?  
TEMPORARY? FUNCTION (IF NOT EXISTS)?  qualifiedName AS className=STRING (USING 
resource (',' resource)*)?  `
    OK, let's combing the logic :
    1. creating the function with both `IF NOT EXISTS` and `REPLACE` is not 
allowed.
    2. It is not allowed to define a `TEMPORARY `function with `IF NOT EXISTS`.
    3. specifying a database in `CREATE TEMPORARY FUNCTION `is not allowed.
    4. creating the function which is exists in hivemetastore and 
functionRegistry:
        a. created only with `IF NOT EXISTS`, we will override the function.
        b. create only with `OR REPLACE`,we will create new one.
    
    @gatorsmile @cloud-fan CC and give me some suggestion, Thanks!
    
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to