Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
Description
When renaming a table within the same DB, this operation causes MetaStoreEventListener.onAlterTable() to fire but when changing DB name for a table it causes MetaStoreEventListener.onDropTable() + MetaStoreEventListener.onCreateTable().
The files from original table are moved to new table location.
This creates confusing semantics since any logic in onDropTable() doesn't know about the larger context, i.e. that there will be a matching onCreateTable().
In particular, this causes a problem for Acid tables since files moved from old table use WriteIDs that are not meaningful with the context of new table.
Current implementation is due to replication. This should ideally be changed to raise a "not supported" error for tables that are marked for replication.
cc sankarh
Attachments
Attachments
Issue Links
- Is contained by
-
HIVE-19488 Enable CM root based on db parameter, identifying a db as source of replication.
- Closed
- is related to
-
HIVE-18748 Rename table impacts the ACID behavior as table names are not updated in meta-tables.
- Closed
-
HIVE-19488 Enable CM root based on db parameter, identifying a db as source of replication.
- Closed
- links to