Skip to content

fix: schema command shows correct table comment and networks from all clusters#83

Merged
samcm merged 1 commit intomasterfrom
swift-ant-693
Mar 17, 2026
Merged

fix: schema command shows correct table comment and networks from all clusters#83
samcm merged 1 commit intomasterfrom
swift-ant-693

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Mar 17, 2026

Summary

  • Table comment bug: The COMMENT 'xxx' regex was matching the first column comment instead of the table-level comment (which lives after the closing paren in ClickHouse DDL). Fixed by searching only the suffix after column definitions.
  • Single-cluster networks: GetTable returned the first cluster match and stopped, so tables present in multiple clusters (e.g. xatu + xatu-experimental) only showed networks from whichever cluster the map iterator hit first. Replaced with GetTableAll that returns matches from all clusters.
  • Per-cluster network display: Networks are now shown per-cluster in both the JSON response and CLI output, so you can see which networks live where.
  • Cleanup: Removed dead GetTable method, consolidated case-insensitive fallback into GetTableAll, fixed log line that was dumping raw structs.

… clusters

The table comment regex was matching the first column COMMENT clause instead
of the table-level COMMENT that appears after the closing parenthesis. Also,
GetTable only returned the first cluster match, so tables present in multiple
clusters (e.g. xatu + xatu-experimental) only showed networks from one.

Now networks are shown per-cluster so you can see which networks are in which
cluster.
@samcm samcm merged commit 44a8288 into master Mar 17, 2026
4 checks passed
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