fix(zookeeper): drop unsupported sql query capability

Closes #8215
This commit is contained in:
t8y2 committed 2026-09-05 16:10:39 +08:00
1 parent 641f82c962
commit 0b9ddff19c
5 files changed
+49 -6

No files matched your search

@@ -112,8 +112,14 @@ export function supportsClearableQuerySchema(dbType?: DatabaseType): boolean {
return !!dbType && CLEARABLE_QUERY_SCHEMA_TYPES.has(dbType);
}
/**
* ZooKeeper has no query surface: its agent implements only kv_* operations,
* so the sidebar "new query" flow would call list-databases and fail
* (issue #8215). It is excluded alongside the other specialized surfaces
* (nacos, consul, hbase) whose connection workbench replaces query tabs.
*/
export function supportsConnectionQueryActions(dbType?: DatabaseType): boolean {
return dbType !== "nacos" && dbType !== "consul" && dbType !== "hbase";
return dbType !== "nacos" && dbType !== "consul" && dbType !== "hbase" && dbType !== "zookeeper";
}
/**