trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.51k stars 3.03k forks source link

Use drop and create to replace a function on Hive Metastore #24010

Closed findinpath closed 2 weeks ago

findinpath commented 3 weeks ago

Hive 3 does not actually replace the content of the function

https://github.com/apache/hive/blob/rel/release-3.1.2/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L9310

Fall-back to using two operations: drop function followed create function for effectively handling the replace operation for the function when working with Hive Metastore.

Description

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. (x) Release notes are required, with the following suggested text:

## Hive
* Use drop & create function when replacing an existing function backed by Hive Metastore  ({issue}`issuenumber`)