atlas
atlas copied to clipboard
fix rename table with diff db bugs
Fix rename table bugs like: ALTER TABLE db_name.test_1 RENAME TO db_name1.test_1;
Can you please provide more context about the usecase and how this patch helps?
When user rename hive table with other db name by executing:
ALTER TABLE db1.table RENAME TO db2.table
HMS hook will send ALTERTABLE_PROPERTIES event msg instead of ALTERTABLE_RENAME (HiveMetastoreHookImpl#onAlterTable), causing old table still cant be found.