Skip to content

Conversation

@MeredithAnya
Copy link
Member

@MeredithAnya MeredithAnya commented Feb 3, 2026

The ON CLUSTER clause in ClickHouse needs quotes for cluster names with hyphens. This PR updates the table copy logic to wrap cluster_name in single quotes when constructing the CREATE TABLE statements.

Test plan

  • Updated test expectations in tests/admin/clickhouse/test_copy_tables.py
  • All tests passing

🤖 Generated with Claude Code

The ON CLUSTER clause in ClickHouse requires the cluster name to be quoted.
Updated the table copy logic to wrap cluster_name in single quotes and
updated corresponding tests to match the expected output.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@MeredithAnya MeredithAnya requested a review from a team as a code owner February 3, 2026 00:50
@MeredithAnya MeredithAnya enabled auto-merge (squash) February 3, 2026 00:57
@MeredithAnya MeredithAnya merged commit 0d480f1 into master Feb 3, 2026
33 checks passed
@MeredithAnya MeredithAnya deleted the meredith/fix-cluster-2-2-26 branch February 3, 2026 01:24
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.

3 participants