[ https://issues.apache.org/jira/browse/HIVE-21499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16803360#comment-16803360 ]
Thejas M Nair commented on HIVE-21499: -------------------------------------- Also can you use {} for the "if" statement. That makes it less error prone. (Famous example - https://blog.codecentric.de/en/2014/02/curly-braces/ ) > should not remove the function from registry if create command failed with > AlreadyExistsException > ------------------------------------------------------------------------------------------------- > > Key: HIVE-21499 > URL: https://issues.apache.org/jira/browse/HIVE-21499 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 3.1.0 > Environment: Hive-3.1 > Reporter: Rajkumar Singh > Assignee: Rajkumar Singh > Priority: Major > Attachments: HIVE-21499.patch > > > As a part of HIVE-20953 we are removing the function if creation for same > failed with any reason, this will yield into the following situation. > 1. create function failed since function already exists > 2. on #1 failure hive will clear the permanent function from the registry > 3. this function will be of no use until hiveserver2 restarted. -- This message was sent by Atlassian JIRA (v7.6.3#76005)