You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2bbf1dc
Browse filesBrowse the repository at this point in the historyBrowse files
pytest -n auto -m "fast and not cicdonly and not isolated" --junitxml=test-results/junit-fast-test.xml && pytest -m "isolated and not slow"&& pytest -m "registry_isolation"&& pytest -m "dialect_isolated"
135
+
pytest -n auto -m "fast and not cicdonly and not isolated" --junitxml=test-results/junit-fast-test.xml && pytest -m "isolated and not slow and not fork_isolated"&& pytest tests/test_forking.py::test_parallel_load -m "isolated and fork_isolated and not slow"&& pytest tests/test_forking.py::test_parallel_load_multi_repo -m "isolated and fork_isolated and not slow"&& pytest -m "registry_isolation"&& pytest -m "dialect_isolated"
136
136
137
137
slow-test:
138
-
pytest -n auto -m "(fast or slow) and not cicdonly and not isolated"&& pytest -m "isolated"&& pytest -m "registry_isolation"&& pytest -m "dialect_isolated"
138
+
pytest -n auto -m "(fast or slow) and not cicdonly and not isolated"&& pytest -m "isolated and not fork_isolated"&& pytest tests/test_forking.py::test_parallel_load -m "isolated and fork_isolated"&& pytest tests/test_forking.py::test_parallel_load_multi_repo -m "isolated and fork_isolated"&& pytest -m "registry_isolation"&& pytest -m "dialect_isolated"
139
139
140
140
cicd-test:
141
-
pytest -n auto -m "(fast or slow) and not pyspark and not isolated" --junitxml=test-results/junit-cicd.xml && pytest -m "pyspark"&& pytest -m "isolated and not pyspark"&& pytest -m "registry_isolation"&& pytest -m "dialect_isolated"
141
+
pytest -n auto -m "(fast or slow) and not pyspark and not isolated" --junitxml=test-results/junit-cicd.xml && pytest -m "pyspark"&& pytest -m "isolated and not pyspark and not fork_isolated"&& pytest tests/test_forking.py::test_parallel_load -m "isolated and not pyspark and fork_isolated"&& pytest tests/test_forking.py::test_parallel_load_multi_repo -m "isolated and not pyspark and fork_isolated"&& pytest -m "registry_isolation"&& pytest -m "dialect_isolated"
142
142
143
143
core-fast-test:
144
144
pytest -n auto -m "fast and not web and not github and not dbt and not jupyter"
Copy file name to clipboardExpand all lines: docs/integrations/engines/clickhouse.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ In general, you must be connected to a ClickHouse server to execute commands. By
49
49
50
50
To associate an object with a cluster, DDL commands that create or modify it must include the text `ON CLUSTER [your cluster name]`.
51
51
52
-
If you provide a cluster name in your SQLMesh connection configuration, SQLMesh will automatically inject the `ON CLUSTER`statement into the DDL commands for all objects created while executing the project. We provide more information about clusters in SQLMesh [below](#cluster-specification).
52
+
If you provide a cluster name in your SQLMesh connection configuration, SQLMesh automatically adds `ON CLUSTER`to object DDL, except for metadata DDL targeting `Replicated` databases, which replicate those changes themselves. We provide more information about clusters in SQLMesh [below](#cluster-specification).
53
53
54
54
#### ClickHouse Cloud mode
55
55
@@ -96,7 +96,9 @@ For example, we could create a table `my_schema.my_table` on cluster `TheCluster
96
96
97
97
To create SQLMesh objects on a cluster, provide the cluster name to the `cluster` key in the SQLMesh connection definition (see all connection parameters [below](#localbuilt-in-scheduler)).
98
98
99
-
SQLMesh will automatically inject the `ON CLUSTER` clause and cluster name you provide into all project DDL statements.
99
+
SQLMesh automatically adds the `ON CLUSTER` clause and cluster name you provide to object DDL, except for metadata DDL targeting `Replicated` databases. SQLMesh retains `ON CLUSTER` for database creation and removal and for partition operations.
100
+
101
+
Partition overwrites in multi-shard `Replicated` databases remain unvalidated. ClickHouse can replicate an ALTER containing both `REPLACE PARTITION` and `DROP PARTITION`, which can conflict with `ON CLUSTER`. This behavior predates the metadata DDL policy described above and depends on the ClickHouse version.
0 commit comments