Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clickhouse-replicated dialect #809

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chapsuk
Copy link
Contributor

@chapsuk chapsuk commented Aug 20, 2024

This PR introduces a new clickhouse-replicated dialect, and here’s why it’s needed:

  • The ReplicatedMergeTree engine is required.
  • The ON CLUSTER clause is a must for CREATE TABLE queries.
  • You need to set insert_quorum=2 for inserts and select_sequential_consistency=1 for selects.

These differences between a single-node ClickHouse instance and a replicated cluster are why we’re adding this new dialect.

Added the environment variable GOOSE_CLICKHOUSE_CLUSTER_NAME (default: {cluster}) allows to set Clickhouse cluster name

@chapsuk chapsuk force-pushed the clickhouse-replicated branch 2 times, most recently from ee7131e to 8a0af1a Compare September 21, 2024 08:53
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.

2 participants