From e29eccd741250d157aceb48f41f0dfd38a6bac69 Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Wed, 3 Apr 2019 19:13:22 -0600 Subject: [PATCH] pass the model name along in get_relations --- plugins/bigquery/dbt/adapters/bigquery/impl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/bigquery/dbt/adapters/bigquery/impl.py b/plugins/bigquery/dbt/adapters/bigquery/impl.py index ad5fbf724bf..c36337f45c9 100644 --- a/plugins/bigquery/dbt/adapters/bigquery/impl.py +++ b/plugins/bigquery/dbt/adapters/bigquery/impl.py @@ -156,7 +156,8 @@ def get_relation(self, database, schema, identifier, model_name=None): ) try: - table = self.connections.get_bq_table(database, schema, identifier) + table = self.connections.get_bq_table(database, schema, identifier, + conn_name=model_name) except google.api_core.exceptions.NotFound: table = None return self._bq_table_to_relation(table)