Skip to content

feat: implement RenameTable in InMemoryCatalog - #742

Merged
wgtmac merged 1 commit into
apache:mainfrom
WZhuo:rename_table
Jun 16, 2026
Merged

feat: implement RenameTable in InMemoryCatalog#742
wgtmac merged 1 commit into
apache:mainfrom
WZhuo:rename_table

Conversation

@WZhuo

@WZhuo WZhuo commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Replace the NotImplemented stub with a full implementation that:

  • Returns early as a no-op when renaming a table to itself
  • Returns NoSuchTable when the source table does not exist
  • Returns AlreadyExists when the destination table already exists
  • Moves the metadata location from source to destination identifier

Add unit test covering rename to self, nonexistent source, destination conflict, and full rename + load verification.

Replace the NotImplemented stub with a full implementation that:
- Returns early as a no-op when renaming a table to itself
- Returns NoSuchTable when the source table does not exist
- Returns AlreadyExists when the destination table already exists
- Moves the metadata location from source to destination identifier

Add unit test covering rename to self, nonexistent source, destination
conflict, and full rename + load verification.

@zhjwpku zhjwpku left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@wgtmac
wgtmac merged commit 1777794 into apache:main Jun 16, 2026
20 checks passed
@WZhuo
WZhuo deleted the rename_table branch July 2, 2026 06:08
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.

3 participants