[ https://issues.apache.org/jira/browse/HIVE-26259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis updated HIVE-26259: --------------------------------------- Fix Version/s: (was: 4.0.0-alpha-2) I cleared the fixVersion field since this ticket is still open. Please review this ticket and if the fix is already committed to a specific version please set the version accordingly and mark the ticket as RESOLVED. According to the [JIRA guidelines|https://cwiki.apache.org/confluence/display/Hive/HowToContribute] the fixVersion should be set only when the issue is resolved/closed. > Alter Function does not update resource uris > -------------------------------------------- > > Key: HIVE-26259 > URL: https://issues.apache.org/jira/browse/HIVE-26259 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 3.1.2 > Reporter: Wechar > Assignee: Wechar > Priority: Major > Labels: pull-request-available > Time Spent: 1h 40m > Remaining Estimate: 0h > > *Bug Description:* > The jar of Hive permanent UDF can be loaded based on the resource uris, but > we encountered an issue after changing the resource uris through spark-sql: > {code:sql} > CREATE OR REPLACE FUNCTION test_db.test_udf AS 'com.xxx.xxx' > USING JAR 'hdfs://path/to/jar'; > {code} > Then when we use the UDF `test_db.test_udf`, an error occured like this: > {code:sh} > Error in query: Can not load class 'com.xxx.xxx' when registering the > function 'test_db.test_udf'... > {code} > *Root Cause:* > Hive metastore does not update resource uris while executing > `alter_function()`, which should be included and will not make any side > effect. -- This message was sent by Atlassian Jira (v8.20.10#820010)