You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "László Bodor (Jira)" <ji...@apache.org> on 2022/03/04 08:46:00 UTC

[jira] [Updated] (HIVE-26003) DROP FUNCTION silently passes when function doesn't exist

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

László Bodor updated HIVE-26003:
--------------------------------
    Description: 
DROP FUNCTION silently passes when a function doesn't exist, which is bad, especially because hive has "DROP FUNCTION IF EXISTS".
I was working with functions when I found that "DROP FUNCTION myfunc" passed, and I thought it simply dropped the function, but then it kept working. I realized I was supposed to call  "DROP FUNCTION default.myfunc" because it's registered as "default.myfunc". This is just one example where DROP FUNCTION seems to work expected, but silently makes confusion. 

> DROP FUNCTION silently passes when function doesn't exist
> ---------------------------------------------------------
>
>                 Key: HIVE-26003
>                 URL: https://issues.apache.org/jira/browse/HIVE-26003
>             Project: Hive
>          Issue Type: Bug
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>
> DROP FUNCTION silently passes when a function doesn't exist, which is bad, especially because hive has "DROP FUNCTION IF EXISTS".
> I was working with functions when I found that "DROP FUNCTION myfunc" passed, and I thought it simply dropped the function, but then it kept working. I realized I was supposed to call  "DROP FUNCTION default.myfunc" because it's registered as "default.myfunc". This is just one example where DROP FUNCTION seems to work expected, but silently makes confusion. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)