You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sai Hemanth Gantasala (Jira)" <ji...@apache.org> on 2024/07/25 00:14:00 UTC

[jira] [Resolved] (HIVE-28371) Optimize add partitions authorization in HiveMetaStore

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

Sai Hemanth Gantasala resolved HIVE-28371.
------------------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

> Optimize add partitions authorization in HiveMetaStore
> ------------------------------------------------------
>
>                 Key: HIVE-28371
>                 URL: https://issues.apache.org/jira/browse/HIVE-28371
>             Project: Hive
>          Issue Type: Improvement
>          Components: Standalone Metastore
>            Reporter: Sai Hemanth Gantasala
>            Assignee: Sai Hemanth Gantasala
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> Currently add_partitions() api sends all the partitions (new partitions and existing partitions) that need to be added for authorization, instead, we can optimize this by sending only the new partitions for authorization.
> Impact: Alter table recover partitions collects all the available partitions and sends it to Metastore to check if any new partitions can be added. If all the partitions are sent for authorization irrespective of whether it exists or not, the Authorization service will unnecessarily spend time on authorizing already existing partitions. This can be avoided by only authorizing new partitions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)