feat(starrocks): enable F2 table rename

This commit is contained in:
bamboo authored and GitHub committed 2026-09-29 17:35:44 +08:00
1 parent faa7040439
commit 5c8c7e0192
3 files changed
+59 -2

No files matched your search

@@ -12,6 +12,16 @@ describe("Inceptor object rename", () => {
});
});
describe("StarRocks object rename", () => {
it("enables table rename only", () => {
expect(supportsObjectRename("starrocks", "TABLE")).toBe(true);
for (const objectType of ["VIEW", "MATERIALIZED_VIEW", "PROCEDURE", "FUNCTION", "EVENT"] as const) {
expect(supportsObjectRename("starrocks", objectType)).toBe(false);
}
expect(supportsDatabaseRename("starrocks")).toBe(false);
});
});
describe("database rename", () => {
it("chooses a maintenance database outside the rename target", () => {
expect(databaseRenameMaintenanceDatabase("admin", "application")).toBe("admin");