apache / apache/gravitino

[FEATURE] supports RENAME TABLE to move a table from one database to another

Open
#8,375 8 comments 0 reactions 0 assignees View on GitHub
epic feature
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 16h
Merged PRs (30d)
298

Description

### Describe the feature

supports RENAME TABLE to move a table from one database to another

### Motivation

Currently, we only support renaming a table within the same database. However, some systems, such as MySQL (https://dev.mysql.com/doc/refman/8.4/en/rename-table.html), support renaming a table to move it between databases.

### Describe the solution

Add a new change type like "moveToSchema" to the table change support.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing table rename change support and the implementations that handle table changes across database systems. Define how a moveToSchema-style change should behave for cross-database moves, then verify the behavior against the existing table-change tests and MySQL's RENAME TABLE semantics.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.