[Bug report] override table id but did not clean associations
Open
2.0.0
bug
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 935
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 298
Description
### Version
main branch
### Describe what's wrong
> If the entity in the store doesn't match the external system, we use the data of external system to correct it.
when correct the table id, we should also clean up or overwrite the associations (such as tag, privilege, etc.) about the old id
### Error message and/or stacktrace
code review
https://github.com/apache/gravitino/blob/e7160ea80e555ce9333d22fb0893b419673b7411/core/src/main/java/org/apache/gravitino/catalog/TableOperationDispatcher.java#L445-L454
### How to reproduce
by CR
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.