Skip to content

feat(clickhouse): scope schema lookups by cluster#110

Merged
samcm merged 1 commit into
masterfrom
clickhouse-schema-cluster
Jun 3, 2026
Merged

feat(clickhouse): scope schema lookups by cluster#110
samcm merged 1 commit into
masterfrom
clickhouse-schema-cluster

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Jun 3, 2026

Scopes panda schema and 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}, and clickhouse://tables/{cluster}/{database}/{table_name} for the table detail.

On the module side, the cross-cluster GetTableExact is replaced by GetClusterTables and GetTableInCluster. Shell completion narrows cluster, then database, then table. An unknown cluster name returns an error listing the clusters that do exist.

Docs (query and self-play skills) 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} to clickhouse://tables/{cluster}/{database}/{table_name}.

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
@samcm samcm force-pushed the clickhouse-schema-cluster branch from df23eca to 7e2d651 Compare June 3, 2026 05:30
@samcm samcm changed the base branch from clickhouse-tables-uri to master June 3, 2026 05:30
@samcm samcm merged commit d185091 into master Jun 3, 2026
3 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant