Skip to content

Commit

Permalink
cluster names containing dash characters (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
the4thamigo-uk committed Oct 16, 2023
1 parent 80cba25 commit 84ca861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/clickhouse/dbclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _ensure_database(self, database_engine, cluster_name) -> None:
db_exists = self.command(check_db)
if not db_exists:
engine_clause = f' ENGINE {database_engine} ' if database_engine else ''
cluster_clause = f' ON CLUSTER {cluster_name} ' if cluster_name is not None else ''
cluster_clause = f' ON CLUSTER "{cluster_name}" ' if cluster_name is not None else ''
self.command(f'CREATE DATABASE {self.database}{cluster_clause}{engine_clause}')
db_exists = self.command(check_db)
if not db_exists:
Expand Down

0 comments on commit 84ca861

Please sign in to comment.