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

Sankar Hariappan commented on HIVE-18748:
-----------------------------------------

Yes, Alter table is used to rename a table. 

We seems to have TBL_ID field in APP.TBLS meta table which is generated by JDO. 
This field is also primary key to this table. Need to see if we shall able to 
re-use it instead of table names. 

> Rename table should update the table names in NEXT_WRITE_ID and 
> TXN_TO_WRITE_ID tables. 
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-18748
>                 URL: https://issues.apache.org/jira/browse/HIVE-18748
>             Project: Hive
>          Issue Type: Sub-task
>          Components: HiveServer2, Transactions
>    Affects Versions: 3.0.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>            Priority: Major
>              Labels: ACID, DDL
>             Fix For: 3.0.0
>
>
> Per table write ID implementation (HIVE-18192) introduces couple of 
> metatables such as NEXT_WRITE_ID and TXN_TO_WRITE_ID to manage write ids 
> allocated per table.
> Now, when we rename any tables, it is necessary to update the corresponding 
> table names in these table as well. Otherwise, ACID table operations won't 
> work properly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to