Skip to content

Conversation

@gabeiglio
Copy link
Contributor

Rationale for this change

Hive catalog returned a NoSuchNamespaceError when it tried to rename to a table that already exists in the catalog. This change will first check for the destination table existence before executing the alter table.

Are these changes tested?

Yes, added one unit test and one integration test

Are there any user-facing changes?

Yes? Users using the hive catalog will get a new exception for this edge case.

@gabeiglio gabeiglio changed the title Catalog: Fix bug for renaming table that already exists Hive Catalog: Fix bug for renaming table that already exists Aug 17, 2025
Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Nice!

@Fokko
Copy link
Contributor

Fokko commented Aug 18, 2025

@gabeiglio looks like ruff is a bit sad, could you run make lint? Thanks!

@Fokko Fokko merged commit f8ccd82 into apache:main Aug 18, 2025
10 checks passed
@gabeiglio gabeiglio deleted the hive-rename branch August 18, 2025 17:33
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