[ 
https://issues.apache.org/jira/browse/HIVE-23785?focusedWorklogId=545706&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-545706
 ]

ASF GitHub Bot logged work on HIVE-23785:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Feb/21 00:28
            Start Date: 02/Feb/21 00:28
    Worklog Time Spent: 10m 
      Work Description: vihangk1 opened a new pull request #1935:
URL: https://github.com/apache/hive/pull/1935


   ### What changes were proposed in this pull request?
   This changes exposes a id field to Database, Catalog and Partition thrift 
objects. The id was always present internally in the metastore but now we start 
exposing it in the thrift interface. This could be very useful to unique 
identify a table or database. For example, a database which is dropped and 
recreated with the same name, will have a different id. Id field is already 
present in the table objects. This PR adds them to Database, Partition and 
Catalogs as well.
   
   ### Why are the changes needed?
   This is a enhancement which could be useful for clients who want to know if 
the object they have is same as the table which is present in the metastore. 
Currently, if another client drops and recreates the object with the same name, 
there is no way of the client to know the difference.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Modified existing tests which assert that id is present in the Database, 
Catalog and Partitions.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 545706)
    Remaining Estimate: 0h
            Time Spent: 10m

> Databases, Catalogs and Partitions should have unique id
> --------------------------------------------------------
>
>                 Key: HIVE-23785
>                 URL: https://issues.apache.org/jira/browse/HIVE-23785
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> HIVE-20556 introduced a id field to the Table object. This is a useful 
> information since a table which is dropped and recreated with the same name 
> will have a different Id. If a HMS client is caching such table object, it 
> can be used to determine if the table which is present on the client-side 
> matches with the one in the HMS.
> We can expand this idea to other HMS objects like Database, Catalogs and 
> Partitions and add a new id field.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to