[ https://issues.apache.org/jira/browse/HIVE-18748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16370268#comment-16370268 ]
Eugene Koifman commented on HIVE-18748: --------------------------------------- How does "rename" get surfaced to the end user? Via Alter Table? I don't think there is anything else anywhere in the acid system that handles rename of db.table value. This probably needs to be a comprehensive change. (Or we can explore using table ID of some sort) > 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)