feat(clickhouse): scope schema lookups by cluster#110
Merged
Conversation
Qualify the ClickHouse schema CLI and resources with a cluster segment so
they target a specific datasource instead of merging across all clusters.
- CLI: `panda schema [cluster] [database] [table]`, narrowing from all
clusters → one cluster → one database → one table
- Resources: add clickhouse://tables/{cluster} and
clickhouse://tables/{cluster}/{database}; the detail URI becomes
clickhouse://tables/{cluster}/{database}/{table_name}
- Replace the cross-cluster GetTableExact with cluster-scoped
GetClusterTables and GetTableInCluster
- Shell completion narrows cluster → database → table
- Unknown-cluster errors list the clusters that do exist
df23eca to
7e2d651
Compare
samcm
added a commit
that referenced
this pull request
Jun 4, 2026
- clickhouse: rename the query/query-raw datasource selector from "cluster" to "datasource", matching prometheus/loki/dora (CLI arg, op key, Python wrapper + docs). Schema-side "cluster" (the logical CH cluster term from #110) is left intact; identifiers remain xatu/xatu-cbt. - eips/consensusspecs: extract the duplicated on-disk JSON cache scaffold into internal/githubapi (generic ReadCache/WriteCache) - proxy binary: serve metrics via pkg/observability so it also exposes /health and /ready - add unit tests for searchsvc, searchruntime, and consensusspecs
samcm
added a commit
that referenced
this pull request
Jun 4, 2026
- clickhouse: rename the query/query-raw datasource selector from "cluster" to "datasource", matching prometheus/loki/dora (CLI arg, op key, Python wrapper + docs). Schema-side "cluster" (the logical CH cluster term from #110) is left intact; identifiers remain xatu/xatu-cbt. - eips/consensusspecs: extract the duplicated on-disk JSON cache scaffold into internal/githubapi (generic ReadCache/WriteCache) - proxy binary: serve metrics via pkg/observability so it also exposes /health and /ready - add unit tests for searchsvc, searchruntime, and consensusspecs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scopes
panda schemaand the ClickHouse schema resources to a single cluster instead of merging across all of them.The CLI is now
panda schema [cluster] [database] [table], narrowing from every cluster down to one table as arguments are added. The MCP resources gain a cluster segment:clickhouse://tables/{cluster},clickhouse://tables/{cluster}/{database}, andclickhouse://tables/{cluster}/{database}/{table_name}for the table detail.On the module side, the cross-cluster
GetTableExactis replaced byGetClusterTablesandGetTableInCluster. Shell completion narrows cluster, then database, then table. An unknown cluster name returns an error listing the clusters that do exist.Docs (
queryandself-playskills) updated to the new URI and CLI shape.Builds on the database-qualified table URIs from #102 (now in master): the detail URI changes from
clickhouse://tables/{database}/{table}toclickhouse://tables/{cluster}/{database}/{table_name}.