Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

chore(api): ClickHouse cluster mode is read from CLICKHOUSE_CLUSTER only

Carl-Gerhard Lindesvärd72e1281a5d16
diff --git a/packages/core/src/shared/ch-tables.ts b/packages/core/src/shared/ch-tables.ts
index 5df4c1639..e88d31a4f 100644
--- a/packages/core/src/shared/ch-tables.ts
+++ b/packages/core/src/shared/ch-tables.ts
@@ -47,10 +47,8 @@ export const TABLE_NAMES = {
/**
* The mutation target as a SQL fragment: `<name>_replicated ON CLUSTER
- * '{cluster}'` when clustered, the plain name otherwise. Clustered mode =
- * production (not self-hosted); non-clustered = self-hosted. The verdict is
- * `config.clickhouseClustered`, resolved once by the config loader from
- * CLICKHOUSE_CLUSTER and SELF_HOSTED.
+ * '{cluster}'` when clustered, the plain name otherwise. The verdict is
+ * `config.clickhouseClustered`, which is CLICKHOUSE_CLUSTER and nothing else.
*
* Built here rather than fed through `sql.id` because the clustered form is
* not an identifier: the `ON CLUSTER` clause is literal template text, and