Skip to content

fix rename table with diff db bugs#140

Open
CanGuan wants to merge 1 commit intoapache:masterfrom
CanGuan:fix-rename-other-db
Open

fix rename table with diff db bugs#140
CanGuan wants to merge 1 commit intoapache:masterfrom
CanGuan:fix-rename-other-db

Conversation

@CanGuan
Copy link
Copy Markdown

@CanGuan CanGuan commented Jun 21, 2021

Fix rename table bugs like: ALTER TABLE db_name.test_1 RENAME TO db_name1.test_1;

Copy link
Copy Markdown
Contributor

@rkundam rkundam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please provide more context about the usecase and how this patch helps?

@CanGuan
Copy link
Copy Markdown
Author

CanGuan commented Jun 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants