You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2017/08/04 23:19:00 UTC

[jira] [Commented] (HIVE-8472) Add ALTER DATABASE SET LOCATION

    [ https://issues.apache.org/jira/browse/HIVE-8472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115082#comment-16115082 ] 

Alan Gates commented on HIVE-8472:
----------------------------------

In HiveMetaStore.alter_database, you want to call get_database_core to get the old db, not get_database.  get_database will fire listener events and the metric tracking functions that determine how much time are being spent in what methods.

+1 to adding an AlterDatabase event.  You should add a test in the event firing tests to make sure it is properly triggered whenever a database is altered.

> Add ALTER DATABASE SET LOCATION
> -------------------------------
>
>                 Key: HIVE-8472
>                 URL: https://issues.apache.org/jira/browse/HIVE-8472
>             Project: Hive
>          Issue Type: Improvement
>          Components: Database/Schema
>    Affects Versions: 2.2.0
>            Reporter: Jeremy Beard
>            Assignee: Mithun Radhakrishnan
>         Attachments: HIVE-8472.1.patch
>
>
> Similarly to ALTER TABLE tablename SET LOCATION, it would be helpful if there was an equivalent for databases.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)