Skip to content

Commit

Permalink
cluster names containing dash characters (#198) (#200)
Browse files Browse the repository at this point in the history
Co-authored-by: the4thamigo-uk <the4thamigo-uk>
  • Loading branch information
the4thamigo-uk authored Oct 21, 2023
1 parent 80cba25 commit b79669a
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 b79669a

Please sign in to comment.