Skip to content

Commit f66c7bf

Browse files
authored
Fix: handle quoted projects properly in bigquery adapter (#3820)
1 parent d3706d3 commit f66c7bf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sqlmesh/core/config/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,12 @@ def _static_connection_kwargs(self) -> t.Dict[str, t.Any]:
925925
)
926926
else:
927927
raise ConfigError("Invalid BigQuery Connection Method")
928+
928929
options = client_options.ClientOptions(quota_project_id=self.quota_project)
930+
project = self.execution_project or self.project or None
931+
929932
client = google.cloud.bigquery.Client(
930-
project=self.execution_project or self.project,
933+
project=project and exp.parse_identifier(project, dialect="bigquery").name,
931934
credentials=creds,
932935
location=self.location,
933936
client_info=client_info.ClientInfo(user_agent="sqlmesh"),

0 commit comments

Comments
 (0)