-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supports rename table #660
Comments
Thanks, To implement the |
Hi, I'd like to work on this issue. Should we get the table name from the manifest file if we only use the table_id to create the path? |
Yes. The table metadata is already stored in the manifest and recovered when opening the table. I think only using table id as the table data path is acceptable and easier to support |
Now we use greptimedb/src/mito/src/engine.rs Lines 61 to 63 in a521ab5
I think we could change it to I'd suggest creating a tracking issue for this feature, as we might need to
Changing the table path and implementing |
No need to create a new |
Since the |
@e1ijah1 pub struct TableChange {
pub table_info: RawTableInfo,
} The pub struct RawTableInfo {
....
pub name: String,
....
} I think we can create a new |
@e1ijah1 And you should update the |
It looks like that when registering a table, a record is written to the greptimedb/src/catalog/src/tables.rs Lines 258 to 272 in a521ab5
greptimedb/src/catalog/src/system.rs Lines 73 to 75 in a521ab5
|
@e1ijah1 Sorry for the late reply.
To modify a record, you could just put an entry with the same key, which overwrites the old one. But deletion requires #614, I will work on it after finishing #555.
Another important thing is that we use greptimedb/src/catalog/src/system.rs Lines 190 to 198 in 7ba5129
|
got it & thanks |
Already implemented. Tracked in #723. |
What problem does the new feature solve?
Can not change the table name
What does the feature do?
Rename old_table to new_table
Implementation challenges
No response
The text was updated successfully, but these errors were encountered: