We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c3aab commit cee33c0Copy full SHA for cee33c0
dbt/include/clickhouse/macros/adapters.sql
@@ -107,7 +107,7 @@
107
{% macro exchange_tables_atomic(old_relation, target_relation, obj_types='TABLES') %}
108
109
{%- if adapter.get_clickhouse_cluster_name() is not none and obj_types == 'TABLES' %}
110
- {% do run_query("SYSTEM SYNC REPLICA "+ target_relation.identifier + on_cluster_clause()) %}
+ {% do run_query("SYSTEM SYNC REPLICA " + on_cluster_clause() + target_relation.schema + '.' + target_relation.identifier) %}
111
{%- endif %}
112
113
{%- call statement('exchange_tables_atomic') -%}
0 commit comments